/* auth.css - Premium Auth Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #3b5ef8;
    --primary-glow: rgba(59, 94, 248, 0.4);
    --bg-dark: #0a0e1a;
    --card-bg: rgba(17, 24, 39, 0.7);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --auth-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-dim: #64748b;
    --auth-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Fallback */
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Background animated patterns */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 94, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(248, 125, 21, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
}

.auth-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative; /* Added for absolute footer positioning */
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-dim);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 10px 15px -3px rgba(59, 94, 248, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(59, 94, 248, 0.4);
    filter: brightness(1.1);
}

.btn-auth:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-page-footer {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
}

.auth-copyright {
    font-size: 9px;
    color: #ffffff;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}