/* === Login Page Styles === */
body {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(15, 118, 110, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: bgShift 8s ease-in-out infinite alternate;
}
@keyframes bgShift { 0% { opacity: 0.7; } 100% { opacity: 1; } }

.particle {
    position: fixed;
    width: 2px; height: 2px;
    background: rgba(20, 184, 166, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.login-wrapper {
    position: relative; z-index: 10;
    width: 100%; max-width: 440px; padding: 20px;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-area { text-align: center; margin-bottom: 32px; }
.school-logo {
    width: auto;
    height: 110px;
    max-width: 100%;
    margin-bottom: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(20, 184, 166, 0.4));
}
.logo-icon i { font-size: 28px; color: white; }
.logo-area h1 { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; letter-spacing: -0.02em; }
.logo-area p { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }

.auth-right .form-field label { color: var(--text-light); font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; display: block; }
.auth-right .input-wrapper { position: relative; }
.auth-right .input-wrapper i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-light); font-size: 1rem; transition: color 0.3s;
}
.auth-right .input-wrapper input {
    width: 100%; padding: 14px 16px 14px 46px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; color: #f1f5f9;
    font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 500;
    transition: var(--transition); outline: none;
}
.auth-right .input-wrapper input::placeholder { color: rgba(148, 163, 184, 0.6); }
.auth-right .input-wrapper input:focus {
    border-color: var(--primary-light);
    background: rgba(20, 184, 166, 0.05);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}
.auth-right .input-wrapper input:focus ~ i { color: var(--primary-light); }

.error-msg {
    display: none; padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px; color: #fca5a5;
    font-size: 0.875rem; margin-bottom: 20px;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.btn-login {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none; border-radius: 12px;
    color: white; font-size: 1rem; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: var(--transition);
}
.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-login .spinner { display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin-anim 0.6s linear infinite;
    margin-right: 8px; vertical-align: middle;
}

.login-footer { text-align: center; margin-top: 24px; color: var(--text-light); font-size: 0.8rem; }

.login-container {
    position: relative; z-index: 10;
    width: 100%; max-width: 900px; padding: 20px;
    display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-auth-card {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
}

.auth-left {
    flex: 1;
    background: rgba(20, 184, 166, 0.05); /* very subtle teal tint */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    display: flex; flex-direction: column;
}

.auth-right {
    flex: 1;
    padding: 40px;
    display: flex; flex-direction: column; justify-content: center;
}

.auth-left h2 {
    font-size: 1.3rem; color: #f1f5f9; margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.auth-left h2 i { color: var(--primary-light); font-size: 1.4rem; }

.notification-list {
    flex: 1; overflow-y: auto; padding-right: 10px; max-height: 400px;
}
.notification-list::-webkit-scrollbar { width: 6px; }
.notification-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.notification-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.noti-item {
    padding: 16px; background: rgba(20, 184, 166, 0.05);
    border-left: 4px solid var(--primary-light);
    border-radius: 0 8px 8px 0; margin-bottom: 16px; color: #e2e8f0;
    font-size: 0.95rem; line-height: 1.6;
}
.noti-item:last-child { margin-bottom: 0; }
.empty-noti { color: var(--text-light); font-style: italic; text-align: center; margin-top: 40px; }

.auth-right form { width: 100%; max-width: 360px; margin: 0 auto; }

@media (max-width: 860px) {
    .main-auth-card { flex-direction: column-reverse; max-width: 480px; margin: 0 auto; }
    .auth-left { border-right: none; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 30px 24px; }
    .auth-right { padding: 30px 24px; }
}

@media (max-width: 480px) {
    .logo-area h1 { font-size: 1.3rem; }
}
