/* ═══════════════════════════════════════════════════════
   public/assets/css/auth.css
   Стили страниц авторизации (namespace .auth)
   PHP 8.5 + MariaDB
   ═══════════════════════════════════════════════════════ */

/* ─── ПЕРЕМЕННЫЕ ─── */
.auth {
    --auth-bg: #0a0a0f;
    --auth-bg2: #1a1a2e;
    --auth-card-bg: rgba(30, 30, 30, 0.85);
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-text: #f1f1f4;
    --auth-text2: #9ca3af;
    --auth-muted: #6b7280;
    --auth-accent: #8b5cf6;
    --auth-accent-soft: rgba(139, 92, 246, 0.15);
    --auth-danger: #ef4444;
    --auth-success: #10b981;
    --auth-radius: 20px;
    --auth-tr: 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--auth-text);
    background: linear-gradient(135deg, var(--auth-bg) 0%, var(--auth-bg2) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.auth *, .auth *::before, .auth *::after { box-sizing: border-box; }
.auth a { color: inherit; text-decoration: none; }

/* ─── ОБЁРТКА ─── */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ─── КАРТОЧКА ─── */
.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 45px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    animation: authFadeIn 0.6s ease-out;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── ЗАГОЛОВОК ─── */
.auth-card h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-subtitle {
    color: var(--auth-text2);
    text-align: center;
    margin-bottom: 35px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ─── ФОРМЫ ─── */
.auth-form-group {
    position: relative;
    margin-bottom: 20px;
}
.auth-label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.auth-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    transition: all var(--auth-tr);
    font-family: inherit;
}
.auth-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--auth-accent);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}
.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ─── КНОПКИ ─── */
.auth-btn {
    border: none;
    color: #fff;
    padding: 14px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    font-size: 1.05rem;
    transition: all var(--auth-tr);
    margin-top: 10px;
    cursor: pointer;
    font-family: inherit;
}
.auth-btn--red {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}
.auth-btn--red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
    background: linear-gradient(135deg, #f40612 0%, #c8080d 100%);
}
.auth-btn--green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.auth-btn--green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}
.auth-btn--purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.auth-btn--purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}
.auth-btn:active {
    transform: translateY(0);
}

/* ─── ССЫЛКИ ─── */
.auth-link {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.auth-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}
.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}
.auth-forgot-link {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* ─── УВЕДОМЛЕНИЯ ─── */
.auth-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}
.auth-alert--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.auth-alert--danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.auth-error-text {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}
.auth-password-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* ─── DEV-ССЫЛКА (для тестов) ─── */
.auth-dev-link {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    word-break: break-all;
    text-align: center;
}
.auth-dev-link a {
    color: #fbbf24;
    text-decoration: underline;
}
.auth-dev-link strong {
    display: block;
    margin-bottom: 5px;
    color: #fcd34d;
}

/* ─── АДАПТИВНОСТЬ ─── */
@media (max-width: 480px) {
    .auth-card {
        padding: 35px 25px;
    }
    .auth-card h2 {
        font-size: 1.6rem;
    }
}