.auth-page {
    position: relative;
    z-index: 2;

    min-height: calc(100vh - 150px);
    padding: 60px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    position: relative;

    width: min(100%, 460px);
    padding: 38px;

    overflow: hidden;

    border: 1px solid rgba(89, 169, 255, 0.2);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 26, 38, 0.96),
            rgba(10, 14, 22, 0.97)
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(18px);
}

.auth-card::before {
    content: "";

    position: absolute;
    top: -140px;
    left: 50%;

    width: 300px;
    height: 260px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(72, 169, 255, 0.14);
    filter: blur(70px);

    pointer-events: none;
}

.auth-card__header {
    position: relative;
    z-index: 1;

    margin-bottom: 30px;
    text-align: center;
}

.auth-card__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0 11px;
    margin-bottom: 16px;

    border: 1px solid rgba(91, 180, 255, 0.25);
    border-radius: 999px;

    color: #75c2ff;
    background: rgba(72, 169, 255, 0.08);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-card__header h1 {
    margin: 0;

    color: #f5f9ff;

    font-size: clamp(27px, 6vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.auth-card__header p {
    margin: 13px 0 0;

    color: #8f9bae;

    font-size: 14px;
    line-height: 1.65;
}

.auth-form {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #b9c4d3;

    font-size: 13px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;

    outline: none;

    border: 1px solid rgba(115, 153, 195, 0.2);
    border-radius: 13px;

    color: #f1f6ff;
    background: rgba(6, 10, 17, 0.72);

    font: inherit;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.form-field input:hover {
    border-color: rgba(102, 181, 255, 0.35);
}

.form-field input:focus {
    border-color: rgba(79, 174, 255, 0.75);

    background: rgba(8, 14, 23, 0.94);

    box-shadow:
        0 0 0 4px rgba(72, 169, 255, 0.1),
        0 0 24px rgba(72, 169, 255, 0.08);
}

.form-field input::placeholder {
    color: #546174;
}

.auth-form button {
    min-height: 54px;
    margin-top: 4px;
    padding: 0 22px;

    cursor: pointer;

    border: 0;
    border-radius: 14px;

    color: #06121d;

    background:
        linear-gradient(
            135deg,
            #78c7ff,
            #48a9ff
        );

    box-shadow:
        0 15px 36px rgba(40, 147, 235, 0.24);

    font: inherit;
    font-size: 15px;
    font-weight: 800;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.auth-form button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 19px 42px rgba(40, 147, 235, 0.34);

    filter: brightness(1.04);
}

.auth-form button:active {
    transform: translateY(0);
}

.form-error {
    color: #ff8297;

    font-size: 12px;
    line-height: 1.45;
}

.form-alert {
    position: relative;
    z-index: 1;

    margin-bottom: 20px;
    padding: 13px 15px;

    border: 1px solid rgba(255, 91, 122, 0.26);
    border-radius: 12px;

    color: #ff91a4;
    background: rgba(255, 91, 122, 0.08);

    font-size: 13px;
    line-height: 1.55;
}

.auth-card__footer {
    position: relative;
    z-index: 1;

    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: #78869a;

    font-size: 13px;
    text-align: center;
}

.auth-card__footer a {
    margin-left: 4px;

    color: #72c1ff;

    font-weight: 700;
    text-decoration: none;
}

.auth-card__footer a:hover {
    color: #a4d9ff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-page {
        min-height: calc(100vh - 130px);
        padding: 30px 14px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .auth-card__header {
        margin-bottom: 25px;
    }
}
.register-page {
    padding-top: 45px;
    padding-bottom: 70px;
}

.register-card {
    width: min(100%, 820px);
}

.register-form {
    gap: 28px;
}

.register-section {
    padding: 22px;

    border: 1px solid rgba(116, 174, 226, 0.12);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 16, 26, 0.72),
            rgba(7, 11, 18, 0.52)
        );
}

.register-section__heading {
    margin-bottom: 21px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.register-section__heading > span {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    border: 1px solid rgba(72, 169, 255, 0.28);
    border-radius: 12px;

    color: #75c2ff;
    background: rgba(72, 169, 255, 0.08);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.register-section__heading div {
    display: grid;
    gap: 3px;
}

.register-section__heading strong {
    color: #eaf4ff;
    font-size: 14px;
}

.register-section__heading small {
    color: #66758a;
    font-size: 11px;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.register-field-wide {
    grid-column: 1 / -1;
}

.form-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 16px;

    appearance: none;
    outline: none;

    border: 1px solid rgba(115, 153, 195, 0.2);
    border-radius: 13px;

    color: #f1f6ff;

    background:
        linear-gradient(
            45deg,
            transparent 50%,
            #66809a 50%
        )
        calc(100% - 20px)
        calc(50% - 2px)
        / 6px 6px
        no-repeat,

        linear-gradient(
            135deg,
            #66809a 50%,
            transparent 50%
        )
        calc(100% - 14px)
        calc(50% - 2px)
        / 6px 6px
        no-repeat,

        rgba(6, 10, 17, 0.72);

    font: inherit;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.form-field select:hover {
    border-color: rgba(102, 181, 255, 0.35);
}

.form-field select:focus {
    border-color: rgba(79, 174, 255, 0.75);

    box-shadow:
        0 0 0 4px rgba(72, 169, 255, 0.1),
        0 0 24px rgba(72, 169, 255, 0.08);
}

.form-field select option {
    color: #eaf3ff;
    background: #101722;
}

.form-hint {
    margin-top: -2px;

    color: #536177;

    font-size: 11px;
    line-height: 1.45;
}

.optional-label {
    margin-left: 5px;

    color: #566477;

    font-size: 10px;
    font-weight: 500;
}

.gender-field {
    margin: 0;
    padding: 0;

    border: 0;
}

.gender-field legend {
    margin-bottom: 8px;
    padding: 0;

    color: #b9c4d3;

    font-size: 13px;
    font-weight: 700;
}

.gender-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gender-option {
    min-height: 52px;
    padding: 0 14px;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid rgba(115, 153, 195, 0.2);
    border-radius: 13px;

    color: #aeb9c8;
    background: rgba(6, 10, 17, 0.72);

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.gender-option:hover {
    border-color: rgba(102, 181, 255, 0.35);
}

.gender-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.gender-option:has(input:checked) {
    border-color: rgba(72, 169, 255, 0.65);

    color: #eaf6ff;
    background: rgba(72, 169, 255, 0.11);

    box-shadow:
        0 0 0 3px rgba(72, 169, 255, 0.07);
}

.gender-option__mark {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: #75c2ff;
    background: rgba(72, 169, 255, 0.09);

    font-size: 17px;
}

.register-submit {
    display: grid;
    gap: 10px;
}

.register-submit p {
    margin: 0;

    color: #617086;

    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 760px) {
    .register-card {
        padding: 30px 20px;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .register-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .register-section {
        padding: 18px 15px;
    }

    .gender-options {
        grid-template-columns: 1fr;
    }
}
.auth-page--register {
    padding-top: 42px;
    padding-bottom: 42px;
}

.auth-card--register {
    width: min(100%, 760px);
}

.auth-logo {
    position: relative;

    width: 68px;
    height: 76px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    clip-path: polygon(
        25% 6.7%,
        75% 6.7%,
        100% 50%,
        75% 93.3%,
        25% 93.3%,
        0 50%
    );

    background:
        linear-gradient(
            145deg,
            #ffe88a,
            #e9a900
        );

    filter:
        drop-shadow(0 0 12px rgba(255, 213, 72, 0.35));
}

.auth-logo::before {
    content: "";

    position: absolute;
    inset: 3px;

    clip-path: inherit;

    background:
        linear-gradient(
            145deg,
            #173652,
            #08101a
        );
}

.auth-logo span {
    position: relative;
    z-index: 1;

    color: #79c9ff;

    font-size: 34px;
    font-weight: 900;

    text-shadow:
        0 0 12px rgba(89, 188, 255, 0.8);
}

.register-form {
    gap: 22px;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 44px 0 16px;

    appearance: none;

    outline: none;

    border: 1px solid rgba(115, 153, 195, 0.2);
    border-radius: 13px;

    color: #f1f6ff;
    background:
        linear-gradient(
            45deg,
            transparent 50%,
            #6b7d92 50%
        ) calc(100% - 20px) 22px / 6px 6px no-repeat,
        linear-gradient(
            135deg,
            #6b7d92 50%,
            transparent 50%
        ) calc(100% - 14px) 22px / 6px 6px no-repeat,
        rgba(6, 10, 17, 0.72);

    font: inherit;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.form-field select:focus {
    border-color: rgba(79, 174, 255, 0.75);

    box-shadow:
        0 0 0 4px rgba(72, 169, 255, 0.1);
}

.form-field select option {
    color: #edf5ff;
    background: #101722;
}

.form-hint {
    color: #657286;

    font-size: 11px;
    line-height: 1.45;
}

.label-optional {
    margin-left: 5px;

    color: #58677b;

    font-size: 11px;
    font-weight: 500;
}

.form-group {
    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
}

.form-group legend {
    margin-bottom: 10px;

    color: #b9c4d3;

    font-size: 13px;
    font-weight: 700;
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice-card {
    position: relative;

    min-height: 50px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    border: 1px solid rgba(115, 153, 195, 0.18);
    border-radius: 13px;

    color: #aebacc;
    background: rgba(6, 10, 17, 0.62);

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.choice-card:hover {
    border-color: rgba(82, 177, 255, 0.38);
}

.choice-card input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.choice-card__indicator {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    border: 2px solid #52647a;
    border-radius: 50%;

    box-shadow:
        inset 0 0 0 4px rgba(6, 10, 17, 0.9);
}

.choice-card:has(input:checked) {
    border-color: rgba(72, 169, 255, 0.68);

    color: #eaf5ff;
    background: rgba(72, 169, 255, 0.09);

    box-shadow:
        0 0 0 3px rgba(72, 169, 255, 0.07);
}

.choice-card input:checked
+ .choice-card__indicator {
    border-color: #5eb8ff;
    background: #5eb8ff;

    box-shadow:
        inset 0 0 0 4px #0b1420,
        0 0 12px rgba(72, 169, 255, 0.6);
}

.rules-checkbox {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    cursor: pointer;

    color: #8997aa;

    font-size: 12px;
    line-height: 1.6;
}

.rules-checkbox input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.rules-checkbox__box {
    width: 20px;
    height: 20px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border: 1px solid rgba(112, 155, 199, 0.35);
    border-radius: 6px;

    color: transparent;
    background: rgba(6, 10, 17, 0.72);

    font-size: 12px;
    font-weight: 900;

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.rules-checkbox input:checked
+ .rules-checkbox__box {
    border-color: #51b2ff;

    color: #06121d;
    background: #62baff;

    box-shadow:
        0 0 15px rgba(72, 169, 255, 0.35);
}

.rules-checkbox a {
    color: #70c1ff;

    font-weight: 700;
    text-decoration: none;
}

.rules-checkbox a:hover {
    text-decoration: underline;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

@media (max-width: 720px) {
    .auth-card--register {
        padding: 30px 22px;
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 460px) {
    .choice-row {
        grid-template-columns: 1fr;
    }

    .auth-card--register {
        padding: 28px 18px;
    }
}