* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-form {
    max-width: 450px;
    margin: 50px auto;
    text-align: center;
}

.login-form h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.login-form h2 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* Quiz Styles */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.student-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
}

.timer {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 30px;
}

.question-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.question-text {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.option input {
    margin-right: 10px;
}

/* Result Styles */
.result-card {
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
}

.result-emoji {
    font-size: 4em;
    margin-bottom: 20px;
}

.result-message {
    color: white;
    font-size: 1.3em;
    margin-bottom: 30px;
}

.result-score {
    font-size: 3em;
    color: #ffd700;
    font-weight: bold;
    margin: 20px 0;
}

/* Admin Styles */
.success {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #51cf66;
}

.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .login-form {
        margin: 20px auto;
    }
    
    .header-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}