/* ============================================================
   1. GLOBAL FOUNDATION (Applied to all pages)
   ============================================================ */
:root {
    --maroon: #800000;
    --maroon-dark: #630d16;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-soft: #fcfcfc;
    /* Cyber Theme Variables */
    --cyber-purple: #c026d3;
    --cyber-glow: rgba(192, 38, 211, 0.2);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    overflow-x: hidden;
}

.content-wrapper {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   2. AUTHENTICATION (Split Layout: Login/Register)
   ============================================================ */
.split-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

.brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--maroon) 0%, #4a0000 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.brand-content { max-width: 450px; text-align: center; }

.logo-text { font-family: 'Lora', serif; font-size: 3.5rem; font-weight: 700; margin-bottom: 2rem; }
.logo-text span { opacity: 0.6; }

.brand-quote {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    text-align: left;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px;
}

.auth-card { width: 100%; max-width: 400px; }

/* Dashboard Typography Match */
.auth-header h2 {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.2px;
    padding-bottom: 20px;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; color: #374151; }

.form-input, input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.form-input:focus, input:focus {
    outline: none;
    border-color: #800000;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

.btn-primary {
    width: 100%;
    background-color: #800000;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover { background-color: #630d16; }

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-footer a { color: #800000; text-decoration: none; font-weight: 600; }

.error-text {
    display: block;
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 6px;
    font-weight: 500;
}

/* ============================================================
   3. CYBER DASHBOARD (Dark Theme)
   ============================================================ */
.cyber-body { background: linear-gradient(135deg, #0f172a, #1e293b); color: #e2e8f0; }

.dashboard-canvas { display: flex; min-height: 100vh; }

.sidebar-elevated {
    width: 260px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.nav-link:hover { background: var(--cyber-glow); color: #fff; transform: translateX(5px); }
.nav-link.active { background: linear-gradient(90deg, #7e22ce, #c026d3); color: white; }

/* ============================================================
   4. RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 1024px) {
    .brand-section { padding: 40px; }
    .logo-text { font-size: 2.5rem; }
}

@media (max-width: 850px) {
    .brand-section { display: none; }
    .form-section { flex: 1; width: 100%; }
}