.auth-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-panel-soft);
    box-shadow: var(--shadow-strong);
}

.auth-brand {
    min-height: 590px;
    padding: clamp(34px, 6vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, .18), transparent 18rem),
        linear-gradient(155deg, #11203a, #0b1324);
    border-right: 1px solid var(--border);
}

.auth-brand__mark {
    width: 66px;
    height: 66px;
    margin-bottom: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, .36);
    border-radius: 19px;
    background: rgba(56, 189, 248, .09);
    color: #7dd3fc;
    font-size: 1.8rem;
    font-weight: 900;
}

.auth-brand h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -.035em;
}

.auth-brand > p:not(.eyebrow) {
    max-width: 520px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: .93rem;
    line-height: 1.75;
}

.security-list {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.security-list span {
    padding: 7px 11px;
    border: 1px solid rgba(52, 211, 153, .22);
    border-radius: 999px;
    background: rgba(52, 211, 153, .07);
    color: #6ee7b7;
    font-size: .72rem;
    font-weight: 750;
}

.auth-card {
    padding: clamp(34px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(30, 41, 59, .99), rgba(25, 35, 54, .99));
}

.auth-card__heading {
    margin-bottom: 24px;
}

.auth-card__heading h1,
.auth-card__heading h2 {
    margin-bottom: 8px;
    font-size: 1.65rem;
}

.auth-card__heading p:last-child {
    margin: 0;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 9px;
}

.auth-form label {
    margin-top: 8px;
    color: #dbe5f1;
    font-size: .78rem;
    font-weight: 750;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    outline: none;
    background: var(--bg-input);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:focus {
    border-color: rgba(56, 189, 248, .82);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .11);
}

.auth-form .button {
    width: 100%;
    margin-top: 15px;
}

.check-row {
    margin-top: 12px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent-strong);
}

.auth-help {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: .72rem;
    line-height: 1.6;
}

.password-shell {
    width: min(530px, 100%);
}

.password-shell .auth-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.secondary-form {
    margin-top: 10px;
}

.secondary-form .button {
    width: 100%;
}

.error-card {
    width: min(470px, 100%);
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-panel);
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.error-code {
    color: #7dd3fc;
    font-size: 3rem;
    font-weight: 900;
}

.error-card p {
    color: var(--text-muted);
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 10px;
        place-items: start center;
    }

    .auth-brand,
    .auth-card {
        padding: 28px 22px;
    }

    .auth-brand h1 {
        font-size: 2rem;
    }
}
