/* Страница входа и регистрации */

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-header {
    padding: 28px clamp(20px, 5vw, 56px) 0;
}

.auth-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 40px clamp(20px, 5vw, 56px) 56px;
}

/* ---------- Левая колонка ---------- */

.auth-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.auth-hero__title {
    font-size: clamp(38px, 4.4vw, 56px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.auth-hero__lead {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-2);
}

.live-call {
    width: min(100%, 520px);
    margin-top: 6px;
    padding: 18px;
    border-radius: var(--r-lg);
}

.live-call__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.live-call__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.live-call__who strong {
    font-size: 15px;
    font-weight: 600;
}

.live-call__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    to { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

.live-call__transcript {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
}

.line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    animation: line-in 0.7s var(--ease-out) forwards;
}

.line span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
}

.line--caller {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 6px;
}

.line--agent {
    align-self: flex-end;
    background: rgba(var(--accent-rgb), 0.12);
    border-bottom-right-radius: 6px;
}

.line--agent span {
    color: rgba(var(--accent-rgb), 0.8);
}

.line em {
    font-style: normal;
}

.line:nth-child(1) { animation-delay: 0.9s; }
.line:nth-child(2) { animation-delay: 1.9s; }
.line:nth-child(3) { animation-delay: 3.1s; }
.line:nth-child(4) { animation-delay: 4.1s; }

@keyframes line-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 560px);
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.auth-features li {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-features div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-features strong {
    font-size: 14px;
    font-weight: 600;
}

.auth-features div span {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.4;
}

/* ---------- Карточка ---------- */

.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 32px;
    border-radius: var(--r-xl);
}

.auth-card__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-card__head h2 {
    font-size: 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form__step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form[hidden],
.auth-form__step[hidden] {
    display: none;
}

.verify-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.verify-head strong {
    font-size: 16px;
}

.verify-head p {
    font-size: 14px;
}

.verify-head #userEmail {
    color: var(--text);
}

.verify-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.verify-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

#codeStatus:empty {
    display: none;
}

.auth-footnote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        padding-top: 24px;
    }

    .auth-hero {
        align-items: center;
        text-align: center;
    }

    .auth-hero__title {
        font-size: clamp(34px, 9vw, 44px);
    }

    .live-call,
    .auth-features {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-hero__lead {
        font-size: 15px;
    }
}
