.auth-main {
    background: var(--soft);
    padding: 64px 0 80px;
}
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1160px;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 65px #04142f0b;
    border: 1px solid var(--line);
}
.auth-story {
    background:
        radial-gradient(ellipse at 0% 0%, #0039a680, transparent 65%),
        var(--navy);
    padding: 60px 48px 36px;
    color: #b8cbe3;
    display: flex;
    flex-direction: column;
}
.auth-story h1 {
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1.12;
    font-weight: 550;
    letter-spacing: -2px;
    color: #fff;
}
.auth-intro {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.7;
}
.flight-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 36px 0;
    color: #83caff;
}
.route-dot {
    width: 8px;
    height: 8px;
    border: 2px solid #83caff;
    border-radius: 50%;
}
.route-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, #3779ba88, #7abcf2);
}
.route-plane {
    font-size: 28px;
    transform: rotate(-12deg);
}
.auth-benefits {
    display: grid;
    gap: 23px;
}
.auth-benefits > div {
    display: flex;
    gap: 20px;
    align-items: start;
}
.auth-benefits > div > span {
    font-size: 10px;
    color: #83caff;
    border: 1px solid #ffffff25;
    padding: 5px 8px;
    border-radius: 5px;
}
.auth-benefits p {
    font-size: 12px;
    line-height: 1.7;
}
.auth-benefits strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 550;
    margin-bottom: 2px;
}
.auth-signature {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #fff;
    border-top: 1px solid #ffffff20;
    margin-top: 38px;
    padding-top: 22px;
}
.auth-signature span {
    display: block;
    color: #7e99b9;
    font-size: 8px;
    margin-top: 5px;
}
.auth-card {
    padding: 52px 48px;
    background: #fff;
}
.auth-card h2 {
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -1.2px;
}
.auth-subtitle {
    font-size: 13px;
    margin-top: 12px;
    color: var(--muted);
}
.auth-preview {
    font-size: 11px;
    line-height: 1.65;
    background: #edf5ff;
    border: 1px solid #dceafb;
    padding: 12px 14px;
    border-radius: 6px;
    margin: 24px 0;
    color: #405c7c;
}
.auth-preview a {
    text-decoration: underline;
    color: var(--blue);
}
#registerForm > label {
    display: block;
    font-size: 12px;
    color: var(--navy);
    font-weight: 600;
    margin: 20px 0 8px;
}
#registerForm input:not([type="checkbox"]) {
    width: 100%;
    height: 52px;
    padding: 13px 14px;
    background: #fbfcfe;
    border: 1px solid #cbd6e4;
    border-radius: 5px;
    color: var(--navy);
    font-size: 14px;
}
#registerForm input:focus-visible {
    outline: 3px solid #006ed12b;
    border-color: var(--electric);
}
.password-wrap {
    position: relative;
}
.password-wrap input {
    padding-right: 70px !important;
}
.password-wrap button {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 12px;
    font-weight: 650;
}
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 28px;
    font-size: 12px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}
.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    margin: 0;
}
.auth-options a,
.auth-register a,
.auth-help a {
    color: var(--blue);
    font-weight: 600;
}
.auth-submit {
    width: 100%;
    font-size: 14px;
}
.auth-register {
    font-size: 12px;
    text-align: center;
    margin-top: 25px;
}
.auth-help {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 26px;
    font-size: 11px;
    text-align: center;
    color: var(--muted);
}
#register-status:not(:empty) {
    margin-top: 14px;
    padding: 12px;
    background: #edf5ff;
    border-radius: 5px;
    font-size: 12px;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid #006ed1;
    outline-offset: 4px;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip,
.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip {
    display: block;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr 1.1fr;
    }
    .auth-story,
    .auth-card {
        padding: 36px 28px;
    }
    .auth-story h1 {
        font-size: 36px;
    }
}
@media (max-width: 700px) {
    .auth-main {
        padding: 28px 0 40px;
    }
    .auth-layout {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
    }
    .auth-story {
        padding: 32px 26px;
    }
    .auth-story h1 {
        font-size: 34px;
    }
    .auth-intro {
        font-size: 14px;
        margin-top: 16px;
    }
    .auth-benefits,
    .flight-line,
    .auth-signature {
        display: none;
    }
    .auth-card {
        padding: 32px 26px;
    }
    .auth-card h2 {
        font-size: 28px;
    }
    .auth-options {
        font-size: 11px;
    }
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 23px 0;
    font-size: 11px;
    line-height: 1.7;
}
.terms-row input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--blue);
}
.terms-row label {
    font-weight: 400;
    color: var(--body);
}
.terms-row a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-story {
    justify-content: center;
}
.auth-story h1 {
    font-size: clamp(34px, 3.2vw, 44px);
}
.auth-card {
    padding-top: 42px;
    padding-bottom: 38px;
}
