/* Authentication System Styles */

/* Login Container */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    background-color: color-mix(in srgb, var(--background-color) 78%, #000 22%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-form {
    background-color: var(--surface-color);
    color: var(--dark-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Tabs */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--progress-border);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
}

.tab-btn.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--progress-border);
    background-color: var(--surface-color);
    color: var(--dark-text);
    border-radius: 4px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.login-error {
    color: #f44336;
    margin-bottom: 15px;
    text-align: center;
    min-height: 20px;
}

/* Admin Panel */
.admin-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9998;
    padding: 20px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.admin-header h2 {
    color: #1976D2;
    margin: 0;
}

.logout-btn {
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.student-list {
    margin-bottom: 20px;
}

.student-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.student-item input {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.student-item button {
    padding: 8px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

.add-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.save-btn {
    padding: 10px 20px;
    background-color: #1976D2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.admin-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.admin-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}

.admin-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    display: block;
}

/* Logout Container */
.logout-container {
    position: static;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.welcome-message {
    margin-right: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .student-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .student-item input {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .student-item button {
        margin-left: 0;
    }
    
    .logout-container {
        padding: 8px 10px;
    }
    
    .welcome-message {
        font-size: 12px;
    }
    
    .logout-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
} 
