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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(0, 122, 255, 0.10), transparent 60%), var(--bg, #f5f5f7);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    padding: 28px;
    box-sizing: border-box;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.auth-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent, #007AFF);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 13px; color: var(--text-secondary, #6e6e73); margin-bottom: 20px; }

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary, #6e6e73);
    cursor: pointer;
}
.auth-tab.active { background: #fff; color: var(--text-primary, #1d1d1f); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10); }

/* Кнопка Яндекс ID — фирменный красный, но в габаритах наших кнопок */
.auth-yandex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
    background: #fc3f1d;
    color: #fff;
    border: 0;
    font-weight: 600;
    text-decoration: none;
}
.auth-yandex:hover { background: #e83514; color: #fff; }

.auth-yandex-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #fc3f1d;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-tertiary, #aeaeb2);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-error {
    display: none;
    margin-bottom: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.09);
    color: #c0261c;
    font-size: 13px;
}
.auth-error.visible { display: block; }

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

.auth-hint { font-size: 12px; color: var(--text-tertiary, #aeaeb2); margin-top: 14px; text-align: center; }
