﻿.auth-main {
    padding-bottom: 34px;
}

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

.auth-intro,
.auth-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow);
}

.auth-intro {
    padding: clamp(28px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}

.auth-intro::after {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 80, 45, 0.16), transparent 70%);
    pointer-events: none;
}

.auth-intro h1 {
    max-width: 12ch;
}

.auth-intro p {
    max-width: 58ch;
}

.auth-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.auth-story-card {
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.auth-story-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.auth-story-card span {
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-support-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.auth-support-strip > div {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--surface-strong), var(--surface));
    border: 1px solid var(--line);
}

.auth-support-strip strong {
    display: block;
    margin-bottom: 8px;
}

.auth-support-strip span {
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-card {
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-card h2 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    letter-spacing: -0.04em;
}

.auth-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.auth-alert--error {
    background: rgba(201, 80, 45, 0.12);
    border: 1px solid rgba(201, 80, 45, 0.26);
    color: var(--accent-strong);
}

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

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

.auth-field span {
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
}

.auth-field input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
    box-shadow: 0 0 0 4px rgba(201, 80, 45, 0.12);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 92px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 72px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-weight: 700;
}

.auth-links a:hover,
.auth-password-toggle:hover {
    background: var(--surface-strong);
}

.auth-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-soft), transparent 120%);
    border: 1px solid var(--line);
}

.auth-note strong {
    display: block;
    margin-bottom: 8px;
}

.auth-note span {
    color: var(--text-muted);
    line-height: 1.7;
}

html[data-theme='dark'] .auth-alert--error {
    color: #ffd3c8;
}

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

    .auth-card {
        max-width: 640px;
    }
}

@media (max-width: 760px) {
    .auth-story-grid,
    .auth-support-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .auth-intro,
    .auth-card {
        border-radius: 24px;
        padding: 22px 18px;
    }

    .auth-links {
        flex-direction: column;
    }

    .auth-links a,
    .auth-password-toggle {
        justify-content: center;
    }
}
