/* ═══════════════════════════════════════════════════════
   Silovik V3 — PREMIUM THEME
   Modern, professional design — better than ZeroBot
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-deep: #0b0f1a;
    --bg-surface: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1e2538;
    --bg-input: #1e2538;
    --border-subtle: rgba(99, 102, 241, 0.08);
    --border-card: rgba(99, 102, 241, 0.12);
    --border-hover: rgba(99, 102, 241, 0.25);
    --border-input: rgba(71, 85, 105, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #a5b4fc;
    --brand-start: #6366f1;
    --brand-mid: #8b5cf6;
    --brand-end: #a78bfa;
    --brand-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.2);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.2);
    --info: #6366f1;
    --info-bg: rgba(99, 102, 241, 0.1);
    --info-border: rgba(99, 102, 241, 0.2);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-elevated: 0 10px 25px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Animated Background ─── */
.bg-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-glow::before {
    content: ''; position: absolute; top: -30%; left: -20%; width: 60%; height: 60%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: glowFloat 20s ease-in-out infinite;
}
.bg-glow::after {
    content: ''; position: absolute; bottom: -20%; right: -10%; width: 50%; height: 50%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    animation: glowFloat 25s ease-in-out infinite reverse;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.05); }
    66% { transform: translate(-3%, -2%) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════ */

.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 24px; position: relative;
}
.auth-container {
    width: 100%; max-width: 420px; position: relative; z-index: 1;
}

/* Logo */
.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo a {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text-primary);
}
.auth-logo-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.auth-logo-text {
    font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
}
.auth-logo-text span {
    background: var(--brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card */
.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    padding: 40px 36px 36px;
    position: relative; overflow: hidden;
}
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-gradient);
}
.auth-card h2 {
    font-size: 22px; font-weight: 700; margin-bottom: 4px;
    color: var(--text-primary); letter-spacing: -0.3px;
}
.auth-card > p {
    color: var(--text-secondary); font-size: 14px;
    margin-bottom: 28px; line-height: 1.5;
}
.auth-divider {
    height: 1px; background: var(--border-card); margin: 24px 0;
}

/* Form */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 7px;
}
.form-input-wrap { position: relative; }
.form-input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 15px; pointer-events: none; z-index: 2;
    transition: var(--transition);
}
.form-input:focus ~ .form-input-icon { color: var(--brand-start); }
.form-input {
    width: 100%; padding: 11px 14px 11px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 14px; font-family: var(--font);
    transition: var(--transition); outline: none;
}
.form-input:focus {
    border-color: var(--brand-start);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(30, 37, 56, 0.9);
}
.form-input::placeholder { color: #475569; }
.form-input.no-icon { padding-left: 14px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-md);
    font-weight: 600; font-size: 14px; font-family: var(--font);
    cursor: pointer; transition: var(--transition);
    border: none; text-decoration: none; outline: none; white-space: nowrap;
}
.btn-primary {
    background: var(--brand-gradient); color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border-card);
}
.btn-secondary:hover {
    background: var(--bg-card-hover); border-color: var(--border-hover);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* Links */
.link {
    color: var(--text-accent); text-decoration: none;
    font-weight: 600; transition: var(--transition);
}
.link:hover { color: #c7d2fe; }

/* Alerts */
.alert {
    padding: 12px 16px; border-radius: var(--radius-md);
    font-size: 13px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; line-height: 1.4;
}
.alert-error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: #fca5a5; }
.alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: #6ee7b7; }
.alert-info { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--text-accent); }

/* Checkbox */
.checkbox-group {
    display: flex; align-items: flex-start; gap: 10px; margin: 18px 0;
}
.checkbox-group input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: var(--brand-start); flex-shrink: 0; cursor: pointer;
}
.checkbox-group label {
    font-size: 13px; color: var(--text-secondary); line-height: 1.5; cursor: pointer;
}
.checkbox-group label a {
    color: var(--text-accent); font-weight: 600; text-decoration: none;
}
.checkbox-group label a:hover { color: #c7d2fe; }

/* Auth Footer */
.auth-footer {
    text-align: center; margin-top: 24px;
    font-size: 13px; color: var(--text-muted);
}
.auth-footer a {
    color: var(--text-accent); font-weight: 600;
    text-decoration: none; transition: var(--transition);
}
.auth-footer a:hover { color: #c7d2fe; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px 24px; }
    .auth-logo-text { font-size: 20px; }
    .auth-logo-icon { width: 38px; height: 38px; font-size: 17px; }
}
