/* Welcome / Login — extracted from views/welcome.php.
   Loaded only on / via $extraCss. */
/* ── Login Page - Minimal Centered ─────────────── */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-8) var(--space-6);
    background: linear-gradient(160deg, var(--gray-50) 0%, var(--bg-secondary) 40%, #EEF0F4 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background orbs */
.login-wrapper::before,
.login-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}
.login-wrapper::before {
    width: 400px; height: 400px;
    background: rgba(219, 37, 37, 0.08);
    top: -100px; right: -100px;
}
.login-wrapper::after {
    width: 300px; height: 300px;
    background: rgba(15, 23, 42, 0.06);
    bottom: -80px; left: -80px;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: loginReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo block */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.login-logo img {
    height: 56px;
    filter: drop-shadow(0 4px 12px rgba(219, 37, 37, 0.15));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo img:hover {
    transform: scale(1.05);
}

.login-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Sign-in button */
.login-btn-wrap {
    width: 100%;
    max-width: 320px;
}

.login-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 14px var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.login-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Footer */
.login-footer {
    font-size: var(--text-xs);
    color: var(--text-light);
    font-family: var(--font-body);
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .login-logo img { height: 48px; }
    .login-logo-text { font-size: var(--text-lg); }
    .login-btn-wrap { max-width: 280px; }
}
