:root {
    --student-accent: #3b82f6;
    --student-accent-dark: #1d4ed8;
    --card-bg: #1e293b;
}

body {
    background: #0f172a;
    color: white;
}

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    background: #111827;
    /* Slightly lighter navy */
    overflow: hidden;
}

    .login-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('/assets/images/hero-bg.webp') no-repeat center center;
        background-size: cover;
        opacity: 0.85;
        /* Increased opacity for visibility */
        z-index: 0;
    }

.login-card {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.96), rgba(17, 24, 39, 0.98));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .login-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .login-header p {
        color: #94a3b8;
        font-size: 1rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        color: #94a3b8;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        background: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1rem 1.25rem;
        border-radius: 12px;
        color: #0f172a;
        font-size: 1rem;
        transition: all 0.2s;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--student-accent);
            background: white;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
        }

        .form-group input::placeholder {
            color: #94a3b8;
        }

.forgot-link {
    display: block;
    text-align: right;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
}

    .forgot-link:hover {
        color: var(--student-accent);
    }

.btn-login {
    width: 100%;
    background: var(--student-accent);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-login:hover {
        background: var(--student-accent-dark);
        transform: translateY(-1px);
    }

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
}

    .login-footer a {
        color: var(--student-accent);
        text-decoration: none;
        font-weight: 600;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}
