.auth-page {
    background:
        radial-gradient(circle at top left, rgba(173, 215, 81, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.auth-page__wrap {
    padding: 48px 0 72px;
}

.auth-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 480px);
    gap: 32px;
    align-items: stretch;
}

.auth-page__hero,
.auth-card {
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.auth-page__hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0e1323 0%, #181f35 52%, #24346e 100%);
    color: #ffffff;
    padding: 42px;
    min-height: 100%;
}

.auth-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0.34rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1;
}

.auth-page__hero h1 {
    margin: 24px 0 16px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    font-weight: 800;
}

.auth-page__hero p {
    margin: 0;
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.03rem;
    line-height: 1.8;
}

.auth-page__hero-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 14px;
}

.auth-page__hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.auth-page__hero-list i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(173, 215, 81, 0.18);
    color: #d6ef95;
    flex: 0 0 34px;
    margin-top: 2px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 36px 32px;
    backdrop-filter: blur(8px);
}

.auth-card__top {
    margin-bottom: 20px;
}

.auth-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #4f5b76;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-card__title {
    margin: 0 0 10px;
    font-size: 1.9rem;
    font-weight: 800;
    color: #121826;
}

.auth-card__subtitle {
    margin: 0;
    color: #5c677d;
    line-height: 1.7;
}

.auth-flash {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid transparent;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.auth-flash--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.auth-flash--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

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

.auth-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-field input {
    height: 52px;
    border-radius: 16px;
    border: 1px solid #d6deea;
    background: #f8fafc;
    padding: 0 16px;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #9dc63f;
    box-shadow: 0 0 0 4px rgba(157, 198, 63, 0.16);
    background: #ffffff;
}

.auth-textarea {
    min-height: 168px;
    border-radius: 16px;
    border: 1px solid #d6deea;
    background: #f8fafc;
    padding: 14px 16px;
    color: #111827;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-textarea:focus {
    outline: none;
    border-color: #9dc63f;
    box-shadow: 0 0 0 4px rgba(157, 198, 63, 0.16);
    background: #ffffff;
}

.auth-form__help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.93rem;
    color: #5b6478;
}

.auth-form__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-form__check input {
    margin-top: 4px;
}

.auth-form__check a,
.auth-form__help a,
.auth-card__footer a {
    color: #1f4ed8;
    text-decoration: none;
    font-weight: 600;
}

.auth-form__check a:hover,
.auth-form__help a:hover,
.auth-card__footer a:hover {
    text-decoration: underline;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827 0%, #2c3d76 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-btn:hover,
.auth-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
    color: #ffffff;
}

.auth-btn--ghost {
    background: linear-gradient(135deg, #d2eb45 0%, #ecff87 100%);
    color: #0f172a;
}

.auth-btn--ghost:hover,
.auth-btn--ghost:focus {
    color: #0f172a;
    box-shadow: 0 16px 32px rgba(173, 215, 81, 0.24);
}

.auth-btn--link {
    text-decoration: none;
    width: 100%;
}

.auth-card--signed-in {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.auth-signed-in__identity {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3fb 100%);
    border: 1px solid #dce5f1;
}

.auth-signed-in__identity strong {
    color: #111827;
    font-size: 1.05rem;
}

.auth-signed-in__identity span,
.auth-signed-in__pitch {
    color: #5c677d;
    line-height: 1.7;
}

.auth-signed-in__actions {
    display: grid;
    gap: 12px;
}

.auth-card__footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    color: #5c677d;
    font-size: 0.96rem;
}

.auth-card__footer--actions {
    border-top: none;
    padding-top: 0;
}

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

    .auth-page__hero {
        padding: 32px 28px;
    }
}

@media (max-width: 575.98px) {
    .auth-page__wrap {
        padding: 28px 0 52px;
    }

    .auth-card,
    .auth-page__hero {
        border-radius: 20px;
        padding: 24px 20px;
    }

    .auth-form__grid {
        grid-template-columns: 1fr;
    }

    .auth-form__help {
        flex-direction: column;
        align-items: flex-start;
    }
}
