.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    align-items: start;
    min-height: calc(100vh - 10rem);
}

.auth-action-page .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.auth-action-page .auth-wrapper {
    width: 100%;
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.auth-hero {
    padding: 2rem 1rem 1rem 0;
}

.auth-hero h1 {
    max-width: 11ch;
    margin-bottom: 1rem;
}

.auth-hero p {
    max-width: 48ch;
}

.auth-feature-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.auth-feature {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    min-width: 0;
}

.auth-card {
    padding: 1.5rem;
    min-width: 0;
}

.auth-card-header {
    margin-bottom: 1.1rem;
}

.auth-card-header h2 {
    margin-bottom: 0.45rem;
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

.auth-consent {
    margin-top: 1.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-legal-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-consent-copy a {
    color: var(--accent);
    font-weight: 700;
}

.auth-consent-copy a:hover {
    color: var(--text);
}

.auth-inline-link {
    margin-top: 0.65rem;
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0.25rem 0.5rem;
}

.auth-support-link {
    display: flex;
    width: fit-content;
    margin: 0.55rem auto 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-support-link:hover {
    color: var(--text);
}

.auth-reset-status {
    min-height: 1.4rem;
    margin-top: 1rem;
    color: var(--text-soft);
}

.auth-reset-status[data-variant="success"] {
    color: #8ff0b4;
}

.auth-reset-status[data-variant="warning"] {
    color: #ffd58f;
}

.auth-reset-status[data-variant="error"] {
    color: #ff9a9a;
}

.auth-divider {
    position: relative;
    margin: 1.15rem 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 0.9rem;
    background: rgba(13, 20, 36, 0.95);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.google-btn {
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.google-btn span {
    font-weight: 800;
}

.captcha-shell {
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

body.auth-page {
    overflow-x: hidden;
    overflow-y: auto !important;
}

@media (max-width: 1280px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: auto;
    }

    .auth-hero {
        padding: 0.5rem 0 0;
    }

    .auth-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .auth-card {
        padding: 1.35rem;
    }
}

@media (max-width: 1120px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .auth-feature-list {
        grid-template-columns: 1fr;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .auth-card {
        padding: 1.15rem;
        border-radius: 22px;
    }

    .auth-hero h1 {
        max-width: 13ch;
    }

    .auth-feature {
        padding: 0.9rem;
    }

    .auth-inline-link,
    .auth-support-link {
        width: 100%;
    }
}
