:root {
    --primary-color: #0f172a;
    /* Deep Navy */
    --secondary-color: #3b82f6;
    /* Bright Blue */
    --accent-color: #10b981;
    /* Emerald Green */
    --background-color: #f8fafc;
    /* Light Gray/White */
    --text-color: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --white: #ffffff;
    --error: #ef4444;
    --success: #22c55e;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Auth Pages (Login/Register) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../images/fudma3.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem;
}

/* Split Layout for Index Page */
.auth-wrapper-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
    overflow: hidden;
}

.instructions-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-height: 100vh;
}

.instructions-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.instructions-header .logo {
    width: 70px;
    height: auto;
    margin-bottom: 0.75rem;
}

.instructions-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.instructions-header p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.instructions-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-align: center;
}

.instruction-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--secondary-color);
}

.instruction-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #60a5fa;
}

.instruction-section ul,
.instruction-section ol {
    margin-left: 1.25rem;
    line-height: 1.7;
    font-size: 0.9rem;
}

.instruction-section li {
    margin-bottom: 0.4rem;
}

.instruction-section p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.instruction-section a {
    color: #60a5fa;
    text-decoration: none;
}

.instruction-section a:hover {
    text-decoration: underline;
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(to right, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
    color: #991b1b;
}

.countdown-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    color: #ef4444;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #dc2626;
}

.countdown-timer .countdown-value {
    font-weight: 700;
    font-size: 1.1rem;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    color: #b91c1c;
}

.countdown-timer span {
    display: inline-block;
}

.login-panel {
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    max-height: 100vh;
}

.login-panel .auth-card {
    max-width: 450px;
    width: 100%;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-wrapper-split {
        grid-template-columns: 1fr;
    }

    .instructions-panel {
        display: none;
    }

    .login-panel {
        max-height: none;
    }
}


.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
.dashboard-nav {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-content {
    padding: 2rem 0;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}