@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@600;700&display=swap');

:root {
    --auth-bg: #030712;
    --auth-surface: rgba(15, 23, 42, 0.85);
    --auth-border: rgba(99, 102, 241, 0.25);
    --auth-text: #e2e8f0;
    --auth-muted: #94a3b8;
    --auth-accent: #6366f1;
    --auth-accent-2: #22d3ee;
    --auth-glow: 0 0 50px rgba(99, 102, 241, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.auth-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

body.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.2), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 40%);
    pointer-events: none;
}

.auth-back {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 10;
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-back:hover { color: var(--auth-accent-2); }

.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 440px; }

.auth-card {
    border-radius: 20px;
    background: var(--auth-surface);
    backdrop-filter: blur(12px);
    overflow: hidden;
    border: none;
    box-shadow: none;
    padding: 0;
}

.auth-card-inner {
    background: transparent;
    border-radius: 0;
}

.auth-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.auth-header h1 {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.auth-header p { color: var(--auth-muted); font-size: 0.9rem; }

.auth-body-inner { padding: 2rem; }
.auth-body-inner .form-group { margin-bottom: 1.25rem; }

.auth-body-inner label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--auth-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-body-inner input[type="text"],
.auth-body-inner input[type="email"],
.auth-body-inner input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--auth-border);
    background: rgba(3, 7, 18, 0.7);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
}

.auth-body-inner input:focus {
    outline: none;
    border-color: var(--auth-accent-2);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.checkbox-group { display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox-group input[type="checkbox"] { width: auto; margin-top: 0.2rem; accent-color: var(--auth-accent); }
.checkbox-group label { margin: 0; text-transform: none; letter-spacing: normal; font-size: 0.85rem; }
.checkbox-group label a { color: var(--auth-accent-2); text-decoration: none; }

.auth-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    font-family: inherit;
}

.auth-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-alert { padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1.25rem; font-size: 0.9rem; }
.auth-alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.auth-alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #86efac; }

.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--auth-muted); font-size: 0.875rem; }
.auth-footer a { color: var(--auth-accent-2); text-decoration: none; font-weight: 600; }

.password-strength { height: 4px; background: rgba(99,102,241,0.15); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.password-strength-bar { height: 100%; width: 0; transition: width 0.3s; }
.password-strength-bar.weak { width: 33%; background: #ef4444; }
.password-strength-bar.medium { width: 66%; background: #f59e0b; }
.password-strength-bar.strong { width: 100%; background: #22d3ee; }
