/* ── PREMIUM WHITE THEME AUTH STYLES ────────────────────────── */
:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1e40af;
    --auth-card-bg: #ffffff;
    --auth-text-dark: #0f172a;
    --auth-text-muted: #64748b;
    --auth-input-bg: #f8fafc;
    --auth-input-border: #e2e8f0;
    --auth-radius: 24px;
    --auth-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/bg-login.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 95, 0.6) 100%);
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 24px;
    position: relative;
    z-index: 10;
    animation: authFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-card {
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    padding: 56px 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 140px; /* Larger for better visibility */
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* mix-blend-mode helps hide white artifacts on white bg if the logo is png */
    mix-blend-mode: multiply; 
}

.auth-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--auth-text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--auth-text-muted);
    margin-top: 10px;
    font-weight: 500;
}

/* ── FORM ELEMENTS ────────────────────────────────────────── */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    color: var(--auth-text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.auth-input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 14px;
    font-size: 15px;
    color: var(--auth-text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    background: #ffffff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-input:focus ~ .input-icon {
    color: var(--auth-primary);
    transform: scale(1.1);
}

.pw-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pw-toggle:hover {
    background: var(--auth-input-border);
    color: var(--auth-text-dark);
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--auth-text-muted);
    cursor: pointer;
    font-weight: 500;
}

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

.forgot-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 18px;
    background: var(--auth-primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-auth:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.5);
}

.btn-auth:active {
    transform: translateY(0);
}

/* ── ALERTS ───────────────────────────────────────────────── */
.alert {
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    width: 100%;
}

.auth-footer .main-footer {
    border: none;
    padding: 0;
    background: transparent;
}

.auth-footer .main-footer p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
}

.system-info {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ── RESPONSIVENESS ────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 48px 24px;
        border-radius: 16px;
    }
}

/* ── EID BANNER ─────────────────────────────────────────── */
.eid-banner {
    background: linear-gradient(135deg, #064e3b, #059669);
    color: #fff;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eid-banner .main-text {
    font-size: 15px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eid-banner .sub-text {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}