/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f8fafc 100%);
    padding: 1rem;
}

.login-box {
    width: 100%;
    margin: 0 auto;
}

.login-logo-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border-radius: var(--radius-2xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-primary);
    margin-bottom: 1rem;
}

.login-logo-icon svg {
    width: 32px;
    height: 32px;
}

.login-logo-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-slate-800);
    margin-bottom: 4px;
}

.login-logo-sub {
    color: var(--color-slate-500);
    font-size: 0.9rem;
}

.login-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.login-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-slate-700);
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-slate-400);
    font-size: 0.8rem;
}

@media (min-width: 480px) {
    .login-box {
        max-width: 430px;
    }

    .login-card {
        padding: 2.5rem;
        border-radius: var(--radius-3xl);
    }

    .login-logo-title {
        font-size: 2rem;
    }
}

/* ============================================
   PAGE LOADER (SPLASH SCREEN)
   ============================================ */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.loader-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.loader-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-slate-800);
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.loader-slogan {
    font-size: 1rem;
    color: var(--color-slate-500);
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--color-slate-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}