@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2D2D73;
    /* Blue from logo */
    --primary-hover: #1e1e4f;
    --secondary: #3b3b8c;
    --bg-main: #f8fafc;
    /* White/light gray background */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #4c4cc2;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Gradients for premium feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 0% 0%, rgba(45, 45, 115, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(59, 59, 140, 0.08) 0%, transparent 50%);
    z-index: -1;
}

/* Glassmorphism/Premium Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 0 20px rgba(45, 45, 115, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 25px 50px -12px rgba(45, 45, 115, 0.1);
}

/* Inputs */
.form-control {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--text-main);
    width: 100%;
    margin-bottom: 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 45, 115, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(45, 45, 115, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(45, 45, 115, 0.4);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Auth Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo-container {
    margin-bottom: 1rem;
}

.brand-logo-container img {
    max-width: 180px;
    height: auto;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-brand-logo {
    max-height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Dashboard/Exam Layout */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

/* Demo Credentials Box */
.demo-credentials {
    background: rgba(45, 45, 115, 0.05);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.demo-credentials h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-credentials p {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.demo-credentials strong {
    font-family: monospace;
    background: #ffffff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Option Cards for Exam */
.option-label {
    display: block;
    background: #ffffff;
    border: 2px solid var(--border);
    padding: 1.2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
    font-weight: 500;
}

.option-label:hover {
    border-color: rgba(45, 45, 115, 0.3);
    background: rgba(45, 45, 115, 0.02);
}

.option-label.selected {
    border-color: var(--primary) !important;
    background: rgba(45, 45, 115, 0.05) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }

    .brand-logo-container img {
        max-width: 150px;
    }

    .nav-links {
        display: none;
        /* Mobile menu can be added later */
    }
}

/* Simple Text Blink Animation */
@keyframes textBlink {
    0%, 100% {
        opacity: 1;
        color: var(--success);
    }
    50% {
        opacity: 0.5;
        color: var(--success);
    }
}

.blink-text {
    animation: textBlink 1.5s ease-in-out infinite;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.blink-text:hover {
    opacity: 0.8;
}