/* ============================================================
   Project PULSE — Splash & Login
   Splash: cinematic style (like LIGHTHOUSE 246)
   Login: Flash captive portal style
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --pulse-primary: #6366f1;
    --pulse-primary-light: #818cf8;
    --pulse-primary-dark: #4f46e5;
    --pulse-deep: #312e81;
    --pulse-secondary: #8b5cf6;
    --pulse-accent: #a78bfa;
    --pulse-accent-light: #c4b5fd;
    --pulse-bg-1: #eef0ff;
    --pulse-bg-2: #e0e7ff;
    --pulse-card-bg: rgba(255, 255, 255, 0.92);
    --pulse-card-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
    --pulse-text-primary: #1e1b4b;
    --pulse-text-secondary: #546e7a;
    --pulse-text-muted: #9ca3af;
    --pulse-border-light: rgba(99, 102, 241, 0.08);
    --pulse-radius: 16px;
    --pulse-radius-sm: 10px;
    --pulse-radius-xs: 8px;
    --pulse-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   SPLASH SCREEN  (LIGHTHOUSE / 246 style)
   ============================================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c0a2e 0%, #1a155c 35%, #2e1f8a 65%, #0c0a2e 100%);
    overflow: hidden;
    transition: opacity .6s cubic-bezier(.4,0,.2,1), visibility .6s;
}
.splash-screen.splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background grid */
.splash-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167,139,250,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: splashGridDrift 20s linear infinite;
}
@keyframes splashGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Radial glow */
.splash-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 70%);
    animation: splashGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes splashGlowPulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Floating particles */
.splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.splash-particle {
    position: absolute;
    color: rgba(167, 139, 250, .10);
    animation: splashFloat linear infinite;
}
.splash-particle svg { width: 100%; height: 100%; }
@keyframes splashFloat {
    0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(45vh) rotate(180deg) scale(1); }
    90% { opacity: .6; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(.6); opacity: 0; }
}

/* Icon container with rings */
.splash-icon-wrap {
    position: relative;
    width: 110px; height: 110px;
    margin-bottom: 32px;
    z-index: 2;
}
.splash-icon-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(167,139,250,.18);
    animation: splashRingSpin 8s linear infinite;
}
.splash-icon-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pulse-accent);
    box-shadow: 0 0 12px rgba(167,139,250,.6);
    transform: translateX(-50%);
}
@keyframes splashRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.splash-icon-ring-2 {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(167,139,250,.10);
    animation: splashRingSpin 12s linear infinite reverse;
}

/* The icon box (logo image) */
.splash-icon {
    width: 100%; height: 100%;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    box-shadow:
        0 0 40px rgba(167,139,250,.20),
        0 8px 32px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.1);
    animation: splashIconFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.splash-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 60%);
}
@keyframes splashIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.splash-icon img {
    width: 72px; height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
    position: relative; z-index: 1;
}

/* Text area */
.splash-text {
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(16px);
    animation: splashTextIn .8s cubic-bezier(.4,0,.2,1) .5s forwards;
}
@keyframes splashTextIn { to { opacity: 1; transform: translateY(0); } }

.splash-label {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(167, 139, 250, .7);
    margin-bottom: 4px;
}
.splash-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 40px rgba(167, 139, 250, .25);
    position: relative;
}
.splash-title .splash-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(.8);
    animation: splashLetterIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes splashLetterIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* Underline accent */
.splash-accent {
    width: 0; height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--pulse-accent), var(--pulse-accent-light), var(--pulse-accent), transparent);
    animation: splashAccent .8s cubic-bezier(.4,0,.2,1) 1.2s forwards;
}
@keyframes splashAccent { to { width: 120px; } }

/* Version */
.splash-version {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .62rem; font-weight: 500;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(167, 139, 250, .40);
    margin-top: 6px; opacity: 0;
    animation: splashVersionIn .6s ease 1.4s forwards;
}
@keyframes splashVersionIn { to { opacity: 1; } }

/* Tagline */
.splash-tagline {
    z-index: 2;
    margin-top: 18px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(148, 163, 184, .5);
    opacity: 0;
    animation: splashFadeIn .6s ease 1.6s forwards;
}
@keyframes splashFadeIn { to { opacity: 1; } }

/* Acronym row */
.splash-acronym {
    z-index: 2;
    display: flex;
    gap: 24px;
    margin-top: 28px;
    opacity: 0;
    animation: splashFadeIn .6s ease 2.4s forwards;
}
.splash-acr-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    opacity: 0; transform: translateY(12px);
    animation: splashAcrIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
.splash-acr-item:nth-child(1) { animation-delay: 2.6s; }
.splash-acr-item:nth-child(2) { animation-delay: 2.85s; }
.splash-acr-item:nth-child(3) { animation-delay: 3.1s; }
.splash-acr-item:nth-child(4) { animation-delay: 3.35s; }
.splash-acr-item:nth-child(5) { animation-delay: 3.6s; }
@keyframes splashAcrIn { to { opacity: 1; transform: translateY(0); } }
.splash-acr-letter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.3rem; font-weight: 800;
    color: var(--pulse-accent-light);
    text-shadow: 0 0 16px rgba(167, 139, 250, .4);
    line-height: 1;
}
.splash-acr-word {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .58rem; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
    color: rgba(148, 163, 184, .55);
    line-height: 1; white-space: nowrap;
}

/* Loading bar */
.splash-loader {
    position: absolute;
    bottom: 60px;
    width: 180px;
    z-index: 2;
}

/* Latest survey completions on splash */
.splash-latest {
    position: absolute;
    bottom: 100px;
    z-index: 2;
    opacity: 0;
    animation: splashTextIn 0.6s ease 2s forwards;
}
.splash-latest-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(167, 139, 250, .5);
    text-align: center;
    margin-bottom: 8px;
}
.splash-latest-list {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.splash-latest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 6px 12px;
    min-width: 180px;
    backdrop-filter: blur(8px);
}
.splash-latest-avatar {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 700;
    flex-shrink: 0;
}
.splash-latest-info { flex: 1; min-width: 0; }
.splash-latest-name {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.splash-latest-school {
    font-size: .58rem;
    color: rgba(148, 163, 184, .6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.splash-latest-time {
    font-size: .55rem;
    color: rgba(167, 139, 250, .4);
    white-space: nowrap;
    font-weight: 500;
}
.splash-loader-track {
    width: 100%; height: 2px;
    background: rgba(255,255,255,.06);
    border-radius: 1px;
    overflow: hidden;
}
.splash-loader-bar {
    height: 100%; width: 0%;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--pulse-primary-dark), var(--pulse-accent));
    transition: width .3s;
}
.splash-loader-text {
    text-align: center;
    margin-top: 8px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: .65rem;
    color: rgba(148, 163, 184, .4);
    letter-spacing: 1px;
}

/* Splash responsive */
@media (max-width: 768px) {
    .splash-icon-wrap { width: 96px; height: 96px; margin-bottom: 28px; }
    .splash-icon img { width: 60px; height: 60px; }
    .splash-title { font-size: 2.8rem; letter-spacing: .3em; }
    .splash-tagline { font-size: .65rem; padding: 0 20px; text-align: center; }
    .splash-version { font-size: .58rem; letter-spacing: 2px; }
    .splash-acronym { gap: 18px; margin-top: 24px; }
    .splash-glow { width: 320px; height: 320px; }
}
@media (max-width: 576px) {
    .splash-screen { padding: 20px 16px; }
    .splash-icon-wrap { width: 72px; height: 72px; margin-bottom: 20px; }
    .splash-icon { border-radius: 16px; }
    .splash-icon img { width: 46px; height: 46px; }
    .splash-icon-ring { inset: -8px; }
    .splash-icon-ring-2 { inset: -14px; }
    .splash-title { font-size: 2rem; letter-spacing: .25em; }
    .splash-label { font-size: .7rem; letter-spacing: 3px; }
    .splash-version { font-size: .52rem; letter-spacing: 1.5px; margin-top: 4px; }
    .splash-tagline { font-size: .6rem; letter-spacing: 1.5px; padding: 0 12px; word-break: break-word; }
    .splash-glow { width: 220px; height: 220px; }
    .splash-acronym { gap: 12px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
    .splash-acr-letter { font-size: .95rem; }
    .splash-acr-word { font-size: .48rem; letter-spacing: .5px; }
    .splash-loader { bottom: 36px; width: 140px; }
    .splash-loader-text { font-size: .58rem; }
    .splash-accent { animation-name: splashAccentSm; }
    @keyframes splashAccentSm { to { width: 80px; } }
}
@media (max-width: 360px) {
    .splash-screen { padding: 16px 12px; }
    .splash-icon-wrap { width: 60px; height: 60px; margin-bottom: 16px; }
    .splash-icon { border-radius: 14px; }
    .splash-icon img { width: 38px; height: 38px; }
    .splash-icon-ring { inset: -6px; border-width: 1.5px; }
    .splash-icon-ring-2 { inset: -12px; }
    .splash-title { font-size: 1.7rem; letter-spacing: .22em; }
    .splash-label { font-size: .62rem; letter-spacing: 2px; }
    .splash-version { font-size: .48rem; letter-spacing: 1px; margin-top: 3px; }
    .splash-tagline { font-size: .55rem; letter-spacing: 1px; }
    .splash-acronym { gap: 8px; margin-top: 14px; }
    .splash-acr-letter { font-size: .82rem; }
    .splash-acr-word { font-size: .42rem; letter-spacing: 0; }
    .splash-loader { bottom: 28px; width: 120px; }
}
@media (max-height: 500px) {
    .splash-screen { padding: 10px 16px; }
    .splash-icon-wrap { width: 52px; height: 52px; margin-bottom: 12px; }
    .splash-icon { border-radius: 12px; }
    .splash-icon img { width: 34px; height: 34px; }
    .splash-icon-ring { inset: -6px; }
    .splash-icon-ring-2 { inset: -10px; }
    .splash-title { font-size: 1.6rem; letter-spacing: 6px; }
    .splash-label { font-size: .6rem; margin-bottom: 2px; }
    .splash-text { margin-bottom: 0; }
    .splash-version { font-size: .46rem; margin-top: 2px; }
    .splash-tagline { margin-top: 10px; font-size: .55rem; }
    .splash-acronym { margin-top: 10px; gap: 10px; }
    .splash-acr-letter { font-size: .8rem; }
    .splash-acr-word { font-size: .42rem; }
    .splash-accent { margin-top: 6px; }
    .splash-glow { width: 180px; height: 180px; }
    .splash-loader { bottom: 14px; width: 120px; }
    .splash-loader-text { font-size: .55rem; margin-top: 4px; }
}

/* Mobile sequential acronym reveal */
.splash-seq-letter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 3.5rem; font-weight: 900;
    color: var(--pulse-accent-light);
    text-shadow: 0 0 30px rgba(167,139,250,.5), 0 0 60px rgba(167,139,250,.2);
    line-height: 1; opacity: 0;
    transform: scale(0.5) translateY(20px);
    animation: splashSeqLetterIn .35s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes splashSeqLetterIn { to { opacity: 1; transform: scale(1) translateY(0); } }
.splash-seq-word {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .85rem; font-weight: 500;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(148, 163, 184, .7);
    margin-top: 6px; opacity: 0;
    animation: splashSeqWordIn .3s ease .1s forwards;
}
@keyframes splashSeqWordIn { to { opacity: 1; } }
.splash-seq-complete {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .6rem; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(148, 163, 184, .5);
    line-height: 1.8; max-width: 280px;
    margin: 0 auto; word-spacing: 4px;
    opacity: 0;
    animation: splashSeqFadeIn .5s ease forwards;
}
@keyframes splashSeqFadeIn { to { opacity: 1; } }
@media (max-width: 576px) {
    .splash-seq-letter { font-size: 3rem; }
    .splash-seq-word { font-size: .75rem; letter-spacing: 2px; }
    .splash-seq-complete { font-size: .52rem; max-width: 240px; }
}
@media (max-width: 360px) {
    .splash-seq-letter { font-size: 2.5rem; }
    .splash-seq-word { font-size: .65rem; letter-spacing: 1.5px; }
    .splash-seq-complete { font-size: .48rem; max-width: 200px; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    margin: 0; padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--pulse-bg-1) 0%, var(--pulse-bg-2) 100%);
    color: var(--pulse-text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== ANIMATED BACKGROUND SHAPES (Flash-style) ===== */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: floatShape 20s ease-in-out infinite;
}
.bg-shapes .shape:nth-child(1) {
    width: 400px; height: 400px;
    background: var(--pulse-primary);
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.bg-shapes .shape:nth-child(2) {
    width: 300px; height: 300px;
    background: var(--pulse-secondary);
    bottom: -80px; left: -80px;
    animation-delay: -5s;
}
.bg-shapes .shape:nth-child(3) {
    width: 200px; height: 200px;
    background: var(--pulse-accent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Login card */
.login-card {
    background: var(--pulse-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--pulse-radius);
    box-shadow: var(--pulse-card-shadow);
    border: 1px solid var(--pulse-border-light);
    padding: 0;
    text-align: center;
    max-width: 440px;
    width: 100%;
    margin: 20px;
    position: relative;
    z-index: 1;
    animation: cardEntrance 0.6s ease-out;
    overflow: hidden;
}
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Accent bar at top of card (Flash-style) */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--pulse-accent), var(--pulse-accent-light), var(--pulse-accent));
    border-radius: 0 0 4px 4px;
}

/* Logo area */
.logo-container {
    padding: 28px 28px 0;
}

.logo-wrap {
    margin-bottom: 10px;
    animation: logoFloat 3s ease-in-out infinite;
    display: inline-block;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.logo-placeholder {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-secondary));
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(99,102,241,.3);
    transition: transform var(--pulse-transition);
}
.logo-wrap:hover .logo-placeholder {
    transform: scale(1.08) rotate(3deg);
}
.logo-placeholder i {
    font-size: 2rem; color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

/* Header banner (Flash-style gradient) */
.header-banner {
    background: linear-gradient(135deg, var(--pulse-deep), var(--pulse-primary), var(--pulse-secondary));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    border-radius: var(--pulse-radius-sm);
    padding: 16px 20px;
    margin: 14px 28px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.header-banner::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.login-title {
    font-size: 1.3rem; font-weight: 800;
    margin: 0 0 4px;
    position: relative; z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    color: #fff;
}
.login-subtitle {
    font-size: 0.78rem;
    opacity: 0.9; font-weight: 500;
    position: relative; z-index: 1;
    margin: 0; line-height: 1.4;
    color: rgba(255,255,255,.9);
}
.login-division {
    font-size: 0.7rem;
    opacity: 0.7; font-weight: 400;
    position: relative; z-index: 1;
    margin: 4px 0 0;
    color: rgba(255,255,255,.7);
}

/* Login form area */
.login-form {
    padding: 20px 28px 24px;
    text-align: left;
}

/* Form groups */
.form-group {
    position: relative;
    margin-bottom: 14px;
}
.form-group .form-label {
    font-size: 0.8rem; font-weight: 600;
    color: var(--pulse-text-primary);
    margin-bottom: 6px;
    display: block;
}

.input-group-icon {
    position: relative;
}
.input-group-icon .input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--pulse-text-muted);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
    transition: color var(--pulse-transition);
}
.input-group-icon .form-control {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 2px solid var(--pulse-border-light);
    border-radius: var(--pulse-radius-xs);
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(255,255,255,0.7);
    color: var(--pulse-text-primary);
    transition: all var(--pulse-transition);
    outline: none;
}
.input-group-icon .form-control::placeholder {
    color: var(--pulse-text-muted);
    font-weight: 400;
}
.input-group-icon .form-control:focus {
    border-color: var(--pulse-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fff;
}
.input-group-icon .form-control:focus ~ .input-icon {
    color: var(--pulse-primary);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer;
    color: var(--pulse-text-muted);
    padding: 4px;
    display: flex; align-items: center;
    transition: color var(--pulse-transition);
    z-index: 2;
}
.password-toggle:hover { color: var(--pulse-primary); }
.password-toggle i { font-size: 0.95rem; }

/* Login button (Flash-style ripple) */
.btn-login {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--pulse-radius-xs);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--pulse-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    margin-top: 4px;
}
.btn-login::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.btn-login:hover::before {
    width: 500px; height: 500px;
}
.btn-login:active {
    transform: translateY(0);
}
.btn-login i, .btn-login span {
    position: relative; z-index: 1;
}

/* Create account section */
.login-register-section {
    text-align: center;
    padding: 16px 28px 0;
    font-size: 0.85rem;
}
.login-register-section .text-muted {
    color: var(--pulse-text-muted) !important;
}

/* Footer */
.login-footer {
    padding: 20px 28px 18px;
    text-align: center;
    margin-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.06);
}
.login-footer p {
    font-size: 0.72rem;
    color: var(--pulse-text-muted);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ===== STAGGER ANIMATIONS (Flash-style) ===== */
.stagger { opacity: 0; animation: staggerIn 0.5s ease forwards; }
.stagger:nth-child(1) { animation-delay: 0.1s; }
.stagger:nth-child(2) { animation-delay: 0.15s; }
.stagger:nth-child(3) { animation-delay: 0.2s; }
.stagger:nth-child(4) { animation-delay: 0.25s; }
.stagger:nth-child(5) { animation-delay: 0.3s; }
.stagger:nth-child(6) { animation-delay: 0.35s; }
.stagger:nth-child(7) { animation-delay: 0.4s; }
@keyframes staggerIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-card { margin: 10px; }
    .logo-container { padding: 20px 18px 0; }
    .logo-placeholder { width: 60px; height: 60px; }
    .logo-placeholder i { font-size: 1.6rem; }
    .header-banner { padding: 14px 16px; margin: 10px 18px 0; }
    .login-title { font-size: 1.15rem; }
    .login-form { padding: 16px 18px 20px; }
    .input-group-icon .form-control { padding: 11px 14px 11px 38px; font-size: 0.88rem; }
    .btn-login { padding: 12px 20px; font-size: 0.9rem; }
    .login-register-section { padding: 14px 18px 0; }
    .login-footer { padding: 16px 18px 14px; }
    
    .splash-title { font-size: 1.25rem; }
    .splash-sub { font-size: 0.82rem; }
    .splash-logo-wrap { width: 72px; height: 72px; }
    .splash-logo-wrap i { font-size: 2rem; }
    .splash-acr-item { padding: 4px 10px; }
}
