/* ═══════════════════════════════════════════════════════════════
   STUDENT LOGIN — Unified with Landing Page Design
   Color: Emerald | Font: Cairo | Style: Clean Minimal
═══════════════════════════════════════════════════════════════ */

:root {
    --sl-primary: #0d9488;
    --sl-primary-dark: #0f766e;
    --sl-primary-light: #ccfbf1;
    --sl-text: #111827;
    --sl-text-muted: #6b7280;
    --sl-bg: #f5f5f0;
    --sl-surface: #ffffff;
    --sl-border: #e5e7eb;
    --sl-font: 'Cairo', sans-serif;
}

body {
    font-family: var(--sl-font);
    color: var(--sl-text);
    background-color: var(--sl-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 { font-family: var(--sl-font); }

/* Animated Background */
.bg-blobs {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
    animation: float 20s infinite ease-in-out alternate;
}
.blob-1 { top: -10%; right: -10%; width: 500px; height: 500px; background: rgba(13, 148, 136, 0.1); }
.blob-2 { bottom: -10%; left: -10%; width: 400px; height: 400px; background: rgba(217, 119, 6, 0.08); animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 60px); } }

/* Navbar */
.navbar-clean {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sl-border);
    padding: 15px 0;
}

/* Layout */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Login Card */
.login-card {
    background: var(--sl-surface);
    border-radius: 24px;
    border: 1px solid var(--sl-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.icon-wrapper {
    width: 70px; height: 70px;
    background: var(--sl-primary-light);
    color: var(--sl-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

/* Form Controls */
.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sl-text);
    margin-bottom: 8px;
}

.input-group-text {
    background: #f8f8f5;
    border: 1px solid var(--sl-border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: var(--sl-text-muted);
}

.form-control {
    background: #f8f8f5;
    border: 1px solid var(--sl-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: var(--sl-font);
    transition: 0.3s;
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: var(--sl-primary);
    background: white;
}

.input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    border-radius: 12px;
}

.btn-login {
    background: linear-gradient(135deg, var(--sl-primary), var(--sl-primary-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    font-family: var(--sl-font);
    width: 100%;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(13,148,136,.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,148,136,.3);
    color: white;
}

.footer-links {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--sl-text-muted);
    text-decoration: none;
    transition: 0.2s;
}
.footer-links a:hover {
    color: var(--sl-primary);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    font-size: 0.9rem;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--sl-text-muted);
}

body.student-login-page > footer:not(.public-shell-footer) {
    display: none;
}

@media (max-width: 767.98px) {
    .bg-blobs { display: none; }

    .navbar-clean {
        background: #fff;
        backdrop-filter: none;
    }

    .login-wrapper {
        padding: 24px 14px;
        align-items: flex-start;
    }

    .login-card {
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        padding: 28px 20px;
    }

    .btn-login:hover {
        transform: none;
        box-shadow: none;
    }
}

.student-lite-motion .animate__animated {
    animation: none !important;
}
