* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    padding: 20px;
}

.main-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.role-selection {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    min-height: 500px;
}

.roles-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.role-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.role-card.admin-card:hover {
    border-color: #dc3545;
}

.role-card.doctor-card:hover {
    border-color: #28a745;
}

.role-card.student-card:hover {
    border-color: #007bff;
}

.role-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.role-card.admin-card .role-icon {
    color: #dc3545;
}

.role-card.doctor-card .role-icon {
    color: #28a745;
}

.role-card.student-card .role-icon {
    color: #007bff;
}

.role-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.role-card p {
    color: #666;
    line-height: 1.5;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-form p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 8px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-signup {
    background: #28a745;
    color: white;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-login:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-signup:hover {
    background: #218838;
}

.btn-back:hover {
    background: #5a6268;
}

.hidden {
    display: none !important;
}

.active-form {
    display: block !important;
}

.main-footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .roles-container {
        flex-direction: column;
        align-items: center;
    }
    
    .role-card {
        width: 100%;
        max-width: 300px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .main-header h1 {
        font-size: 2rem;
    }
    
    .role-selection {
        padding: 20px;
    }
}كم