:root {
    /* --- COLOR PALETTE (Premium Dark) --- */
    --bg-body: #0f172a;        /* Main background */
    --bg-card: #1e293b;        /* Form/Box background */
    --text-main: #f8fafc;      /* Main text color */
    --text-muted: #94a3b8;     /* Secondary text */
    --primary: #8b5cf6;        /* Main brand color (Purple) */
    --primary-hover: #7c3aed;  /* Darker purple for hover states */
    --danger: #ef4444;         /* Error messages */
    --success: #10b981;        /* Success messages */
    
    /* --- SPACING & BORDERS --- */
    --radius: 8px;             /* Rounded corners */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* GENERAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* LINKS */
a { text-decoration: none; color: var(--primary); font-weight: 500; }
a:hover { color: var(--primary-hover); }

/* AUTH WRAPPER (Centers the login box) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* AUTH BOX (The actual form container) */
.auth-box {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* HEADINGS & FORMS */
h2 { text-align: center; margin-bottom: 1.5rem; color: var(--text-main); }

.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    background-color: #334155;
    border: 1px solid #475569;
    color: #fff;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.btn-primary:hover { background-color: var(--primary-hover); }
/* Disabled button state */
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ALERTS */
.alert {
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}
.alert.error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid var(--danger); }
.alert.success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid var(--success); }

/* UTILITY */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }