.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);
}
#login-form > label {
    display: block;
    font-size: 12px;
    color: var(--navy);
    font-weight: 600;
    margin: 20px 0 8px;
}
#login-form 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;
}
#login-form 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);
}
#login-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;
}
@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;
    }
}

.flow-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}
.flow-card .auth-subtitle {
    line-height: 1.8;
    margin-bottom: 20px;
}
.flow-card form label,
.account-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin: 18px 0 8px;
}
.flow-card input,
.account-form input,
.account-form select {
    width: 100%;
    min-width: 0;
    height: 49px;
    padding: 12px 14px;
    border: 1px solid #cbd6e4;
    border-radius: 5px;
    background: #fbfcfe;
    color: var(--navy);
    font: inherit;
    font-size: 13px;
}
.flow-card form .button,
.account-form > .button {
    margin-top: 24px;
}
.flow-password {
    position: relative;
}
.flow-password input {
    padding-right: 70px;
}
.flow-password button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 39px;
    border: 0;
    background: transparent;
    color: var(--blue);
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
}
.flow-status:not(:empty) {
    border: 1px solid #d5e5f8;
    background: #edf5ff;
    border-radius: 6px;
    font-size: 12px;
    padding: 15px;
    color: #244a79;
    margin-top: 22px;
}
.flow-error {
    color: #a32937;
    font-size: 11px;
    margin-top: 10px;
}
.state-icon {
    height: 50px;
    width: 50px;
    display: grid;
    place-items: center;
    background: #edf5ff;
    color: var(--blue);
    border-radius: 50%;
    font-size: 24px;
    margin: 24px 0 5px;
}
.example-state {
    font-size: 10px;
    line-height: 1.7;
    border: 1px solid var(--line);
    padding: 11px 13px;
    border-radius: 5px;
    color: var(--muted);
    margin: 0 0 24px;
}
.account-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.account-tabs a {
    font-size: 11px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 14px;
    border-radius: 5px;
}
.account-tabs [aria-current="page"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.account-preview-note {
    font-size: 10px;
    color: var(--muted);
    margin: 0 0 22px;
}
.account-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 30px;
    margin: 0 0 22px;
    min-width: 0;
}
.account-panel h2 {
    font-size: 22px;
    margin-bottom: 20px;
}
.account-form {
    max-width: 760px;
}
.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}
.account-help {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
    margin: 18px 0;
}
.account-form small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
}
.account-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.account-card-links a {
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 14px 17px;
    border-radius: 6px;
    color: var(--blue);
}
.account-empty {
    padding: 30px 20px 36px;
    text-align: center;
    background: #f7faff;
    border: 1px dashed #cbd9ea;
    border-radius: 8px;
    margin: 18px 0 24px;
}
.account-empty > span {
    font-size: 25px;
    color: var(--blue);
    display: block;
    margin-bottom: 14px;
}
.account-empty p {
    font-size: 12px;
    color: var(--muted);
    max-width: 480px;
    margin: 10px auto;
}
.account-bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
    font-size: 12px;
    color: var(--blue);
    flex-wrap: wrap;
}
.document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.document-grid > a,
.document-grid > article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 23px;
    background: #fbfdff;
    min-width: 0;
}
.document-grid span {
    font-size: 9px;
    color: var(--blue);
    letter-spacing: 1px;
}
.document-grid h3 {
    font-size: 18px;
    margin-top: 10px;
}
.document-grid p {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 20px;
}
.document-grid b {
    font-size: 11px;
    color: var(--blue);
}
.subscription-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px;
    border-radius: 8px;
    background: #edf5ff;
}
.subscription-overview p:not(.eyebrow) {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
}
.cancel-details {
    border: 1px solid var(--line);
    background: #f8faff;
    border-radius: 8px;
    padding: 23px;
}
.cancel-details ul {
    font-size: 12px;
    color: var(--muted);
    padding-left: 18px;
}
.cancel-details li {
    margin-top: 10px;
}
.flow-card input:focus-visible,
.account-form input:focus-visible,
.account-form select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #006ed145;
    outline-offset: 3px;
}
.plan-change-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
    .plan-change-grid {
        grid-template-columns: 1fr;
    }
    .subscription-overview {
        align-items: start;
        flex-direction: column;
    }
}
@media (max-width: 700px) {
    .account-form-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }
    .account-panel {
        padding: 23px 18px;
    }
    .account-tabs {
        gap: 6px;
    }
    .account-tabs a {
        font-size: 10px;
        padding: 9px;
    }
    .flow-card {
        min-height: 0;
    }
    .account-bottom-links {
        align-items: stretch;
        flex-direction: column;
    }
}
