:root {
    --primary-color: #6366f1;
    --secondary-color: #45a049;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.auth-card, .error-message {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-logo {
    width: 60px;
    margin-bottom: 0.5rem;
}

.auth-header h1 {
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.auth-tagline {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.auth-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-toggle button {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #eee;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.auth-toggle button.active {
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
}

.auth-form {
    display: none;
    text-align: left;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

.auth-btn {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn:hover {
    background-color: var(--secondary-color);
}

.difficulty-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    text-transform: capitalize;
}

.difficulty-easy {
    background: #d4f7d4;
    color: #1a7b1a;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}


/* Quiz Header Container */
.quiz-header {
    text-align: center;
    margin-bottom: 20px;
}

/* Category Label */
.quiz-category {
    font-size: 20px;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

/* Difficulty Badge (you already have this but adding spacing) */
.difficulty-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    text-transform: capitalize;
}

/* Difficulty Colors */
.difficulty-easy {
    background: #d4f7d4;
    color: #1a7b1a;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

/* Score + Progress Row */
.quiz-top-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-top: 10px;
}

/* Score + Progress text */
.quiz-score,
.quiz-progress {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}