:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%), 
              url("../../assets/images/logo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.university-header {
    margin-top: 10px;
    animation: fadeInDown 0.8s ease;
}

.university-name {
    font-size: 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.department-name {
    font-size: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.department-name::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    bottom: -8px;
    left: 25%;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .university-name {
        font-size: 2.5rem;
    }
    .department-name {
        font-size: 0.9rem;
    }
}

.login-container {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    position: relative;
}

.login-header h2 {
    margin: 0;
    font-weight: 700;
}

.university-logo {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.role-selector {
    display: flex;
    border-bottom: 1px solid #eee;
}

.role-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.role-btn.active {
    background: white;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.role-btn:hover:not(.active) {
    background: #e9ecef;
}

.login-form {
    padding: 20px;
}

.form-control {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding-left: 45px;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 13px;
    color: #777;
}

.btn-login {
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 5px;
}

.forgot-password a {
    color: #777;
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--secondary-color);
}

.login-footer {
    text-align: center;
    padding: 10px;
    color: #777;
    font-size: 14px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Animation for form switching */
.login-form-section {
    display: none;
}

.login-form-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .university-logo {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
}