:root {
    --primary-color: #4facfe; /* Light blue */
    --secondary-color: #00f2fe;
    --accent-yellow: #ffcf54;
    --accent-green: #5ee9b0;
    --text-color: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #f7fafc;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0f2fe; 
    background: url('assets/elearning_background.png') center/cover no-repeat;
    background-attachment: fixed;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: white;
    padding: 10px;
}

h1 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 800;
}

.welcome-message {
    text-align: center;
    color: var(--text-color);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    z-index: 1; /* ensure icon rests on top of input background */
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--input-bg);
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15);
    background-color: #fff;
}

.input-group input::placeholder {
    color: #a0aec0;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link, .register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.forgot-link:hover, .register-link:hover {
    color: #2b6cb0;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(79, 172, 254, 0.4);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.5);
}

.login-btn:active {
    transform: translateY(1px);
}

.register-prompt {
    text-align: center;
    margin-top: 25px;
    color: var(--text-color);
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .input-group input {
        padding: 14px 14px 14px 45px;
        font-size: 15px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 16px;
    }
}
