/* Auth pages — login & register */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1328;
    --bg-card: #141832;
    --text-primary: #e8eaf6;
    --text-secondary: #8b90b0;
    --text-muted: #5a5f7c;
    --accent-cyan: #00f0ff;
    --accent-purple: #7b2fff;
    --border-color: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --gradient-main: linear-gradient(135deg, #00f0ff 0%, #7b2fff 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth__side {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.auth__side::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
    top: -100px; right: -100px;
}
.auth__side::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(123,47,255,0.08) 0%, transparent 70%);
    bottom: -80px; left: -80px;
}

.auth__side-content { position: relative; z-index: 1; max-width: 420px; }

.auth__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 48px;
}

.auth__side-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.auth__side-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.auth__side-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}
.auth__side-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}
.auth__side-stats span {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth__form-wrap { width: 100%; max-width: 400px; }

.auth__title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.auth__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth__error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #f87171;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth__form { display: flex; flex-direction: column; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-field label small { color: var(--text-muted); font-weight: 400; }
.form-field input {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0,240,255,0.1);
}
.form-field input::placeholder { color: var(--text-muted); }

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--gradient-main);
    color: #0a0e1a;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0,240,255,0.25);
    margin-top: 4px;
}
.btn-auth:hover {
    box-shadow: 0 6px 30px rgba(0,240,255,0.4);
    transform: translateY(-2px);
}

.auth__switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth__switch a { color: var(--accent-cyan); font-weight: 600; text-decoration: none; }
.auth__switch a:hover { text-decoration: underline; }

.auth__back {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.auth__back:hover { color: var(--accent-cyan); }

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth__side { display: none; }
    .auth__main { padding: 32px 20px; }
}
