:root {
    --primary-color: #0A1930;
    --secondary-color: #1A365D;
    --accent-color: #007BFF;
    --text-color: #333333;
    --bg-color: #F0F4F8;
    --white: #FFFFFF;
    --error-color: #E53E3E;
    --success-color: #38A169;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background graphics for Auth pages */
.auth-body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,54,93,0.1) 0%, rgba(26,54,93,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.auth-body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.auth-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(10, 25, 48, 0.08);
    position: relative;
    z-index: 1;
    margin: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-subtext {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 48, 0.2);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: center;
    background: rgba(229, 62, 62, 0.1);
    padding: 10px;
    border-radius: 6px;
}

.help-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    display: block;
}

/* Navbar for Dashboard */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
}

.navbar-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-nav a:hover {
    color: var(--white);
}

.dashboard-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* CSRF Input Hidden but added just in case */
input[name="csrfmiddlewaretoken"] {
    display: none;
}
