/* ========================================
   Login Minimal CSS — ALITA
   Only what login page needs. ~5KB vs 4MB+
   ======================================== */

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #F9FAFB;
    color: #181C32;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Background */
.login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 30%, #C7D2FE 60%, #DDD6FE 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Login Card */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 40px -4px rgba(0, 0, 0, 0.06);
}

/* Copyright Footer */
.login-copyright {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #94A3B8;
    letter-spacing: 0.3px;
}

/* Animation */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}
.animate-delay-2 {
    animation-delay: 0.15s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minimal Bootstrap utilities used by login.php */
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.gap-2 { gap: 0.5rem; }

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    position: relative;
}
.alert-danger {
    border: 1px solid #FCA5A5;
    background: #FEF2F2;
    color: #991B1B;
}
.alert .close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}
.alert .close:hover { opacity: 1; }

/* Form Control */
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #F8FAFC;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.form-control::placeholder {
    color: #94A3B8;
}

/* Button hover effect for Sign In button */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.4) !important;
}
button[type="submit"]:active {
    transform: translateY(0);
}

/* Google button hover */
.btn-google:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 24px;
        border-radius: 16px;
    }
}
