body {
    margin: 0;
    min-height: 100vh;
    color: #10233c;
    background: #f4f7f6;
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(13, 40, 73, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 40, 73, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.top {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #16372c;
    text-decoration: none;
    font-size: 1.13rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 31px;
    height: 31px;
    display: block;
}

main {
    position: relative;
    width: min(520px, calc(100% - 32px));
    margin: 6vh auto 4rem;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 28px 80px rgba(13, 40, 73, 0.13),
        0 2px 8px rgba(13, 40, 73, 0.05);
}

h1 {
    margin: 0;
    color: #0d2849;
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.035em;
}

h1 + form {
    margin-top: 18px;
}

main > p {
    margin: 8px 0 24px;
    color: #748193;
    font-size: 0.9rem;
    line-height: 1.5;
}

label {
    display: block;
    margin: 0 0 7px;
    color: #435368;
    font-size: 0.78rem;
    font-weight: 700;
}

input {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 17px;
    padding: 13px 14px;
    border: 1px solid #d7dee5;
    border-radius: 11px;
    color: #10233c;
    background: #f9fbfb;
    font: inherit;
    outline: none;
}

input:focus {
    border-color: #398772;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(44, 119, 99, 0.11);
}

button {
    width: 100%;
    margin-top: 4px;
    padding: 14px 16px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #16372c;
    font: inherit;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(22, 55, 44, 0.18);
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: #20513f;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #398772;
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #d7dee5;
    border-radius: 11px;
    background: #f9fbfb;
    font-size: 0.92rem;
}

.chip a {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.secret {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.secret label {
    margin-bottom: 7px;
}

.cf-turnstile {
    margin: 0;
    line-height: 0;
}

.gate {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 0;
}

.gate > button {
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
    min-height: 65px;
    margin: 0;
    padding: 10px 14px;
}

@media (max-width: 34rem) {
    .gate {
        flex-wrap: wrap;
    }

    .gate > button {
        flex: 1 1 100%;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

a.go {
    display: block;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 11px;
    color: #fff;
    background: #16372c;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(22, 55, 44, 0.18);
}

a.go:hover {
    background: #20513f;
}

a.go + form {
    margin-top: 16px;
}

.steps {
    margin: 0 0 18px;
    padding-left: 22px;
    color: #10233c;
    font-size: 0.9rem;
    line-height: 1.7;
}

.steps li {
    padding-left: 2px;
}

button.link {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #28765d;
    background: transparent;
    box-shadow: none;
    font-weight: 700;
    font-size: 0.85rem;
}

a {
    color: #28765d;
}

.error {
    color: #991b1b;
}

.notice {
    color: #1e3a5f;
}

.back {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.85rem;
}

.top.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

select {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 17px;
    padding: 13px 14px;
    border: 1px solid #d7dee5;
    border-radius: 11px;
    color: #10233c;
    background: #f9fbfb;
    font: inherit;
}

.hint {
    margin: 0 0 16px;
    color: #8893a0;
    font-size: 0.78rem;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-weight: 600;
}

.check input {
    width: auto;
    margin: 0;
}
