/* Reset & Body Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Main Card Container */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* Header Styling */
.login-header {
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.logo {
    width: 400px;
    height: auto;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
}

.uni-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.uni-address {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.dept-name {
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form Container */
.modern-form {
    padding: 40px 30px;
}

/* Input Fields */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #525f7f;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f6f9fc;
    transition: all 0.2s;
    color: #32325d;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #5e72e4;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

/* Captcha Styling */
.captcha-group {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-group label {
    display: block;
    font-size: 0.85rem;
    color: #8898aa;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#captchaImage {
    border-radius: 4px;
    border: 1px solid #ddd;
    height: 40px;
}

.btn-refresh {
    background: #fff;
    border: 1px solid #ddd;
    color: #5e72e4;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #5e72e4;
    color: white;
}

/* Login Button */
.btn-login {
    width: 100%;
    background: #5e72e4;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.15s;
}

.btn-login:hover {
    transform: translateY(-1px);
    background: #4e62d4;
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Footer Links */
.footer-links {
    text-align: center;
    margin-top: 20px;
}

.forgot-link {
    color: #8898aa;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color: #5e72e4;
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
    .login-card {
        margin-top: 20px;
        box-shadow: none;
        background: transparent;
    }
    .modern-form, .login-header {
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .login-header {
        margin-bottom: 20px;
    }
}