/* ═══════════════════════════════════════
   SPLASH — Login/Entry Screen + HUD
   ═══════════════════════════════════════ */

#splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity .8s var(--ease-smooth);
    background-image: linear-gradient(to bottom, rgba(4,9,15,0.68), rgba(4,9,15,0.88)), url('../assets/fundo-loading.png');
    background-size: cover; background-position: center bottom; background-repeat: no-repeat; background-attachment: fixed;
    overflow: hidden;
}

.splash-content { text-align: center; width: 420px; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 5; }

.splash-logo { width: 420px; height: auto; border-radius: 28px; margin-bottom: 0; filter: drop-shadow(0 0 24px rgba(56,189,248,0.40)); animation: pulseLogo 2.5s infinite ease-in-out; position: relative; z-index: 2; }

.loader-container { width: 100%; height: 3px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky)); border-radius: 3px; transition: width .4s var(--ease-smooth); box-shadow: 0 0 8px rgba(56,189,248,0.28); }

.loading-text { color: var(--accent-sky); font-family: 'Inter',sans-serif; font-size: 11px; letter-spacing: 2.5px; font-weight: 600; text-transform: uppercase; animation: blinkText 1.8s infinite; }

@keyframes pulseLogo { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes blinkText { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.splash-hidden { opacity: 0; pointer-events: none; }

/* ─── PASSWORD ─── */
#password-container { width: 100%; }

#systemPassword {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: rgba(8,17,31,0.75);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-align: center;
    outline: none;
    backdrop-filter: blur(12px);
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
    caret-color: var(--accent-sky);
}
#systemPassword::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
#systemPassword:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.10), 0 0 14px rgba(56,189,248,0.14);
}

#btnPassword {
    width: 100%;
    padding: 12px 16px;
    background: rgba(56,189,248,0.09);
    border: 1px solid var(--border-accent);
    color: var(--accent-sky);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s var(--ease-spring);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#btnPassword:hover { background: rgba(56,189,248,0.16); box-shadow: 0 0 18px rgba(56,189,248,0.35), 0 0 40px rgba(56,189,248,0.12); transform: translateY(-1px); }
#btnPassword:active { transform: translateY(0) scale(0.98); }

#passwordError {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f87171 !important;
    text-align: center;
}

/* ── LOGIN / ENTRY SCREEN — PREMIUM LAYER ── */

/* Animated scanline beam */
.splash-scan-layer {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: repeating-linear-gradient(180deg, transparent 0px, transparent 3px, rgba(56,189,248,0.010) 3px, rgba(56,189,248,0.010) 4px);
}
.splash-scan-layer::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 200px;
    background: linear-gradient(180deg, transparent, rgba(56,189,248,0.032) 50%, transparent);
    animation: scanBeam 8s linear infinite;
}
@keyframes scanBeam { from { transform: translateY(-200px); } to { transform: translateY(calc(100vh + 200px)); } }

/* HUD top corners */
.splash-hud-tl {
    position: absolute; top: 28px; left: 32px; z-index: 10;
    display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.splash-hud-tl .hud-program {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 3px; color: rgba(56,189,248,0.75); text-transform: uppercase;
}
.splash-hud-tl .hud-city {
    font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 500;
    letter-spacing: 2px; color: rgba(255,255,255,0.28); text-transform: uppercase;
}
.splash-hud-tr {
    position: absolute; top: 28px; right: 32px; z-index: 10;
    display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.hud-status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.9);
    animation: hudPulse 2.2s ease-in-out infinite;
}
@keyframes hudPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(74,222,128,0.7); }
    50% { box-shadow: 0 0 14px rgba(74,222,128,1), 0 0 28px rgba(74,222,128,0.35); }
}
.hud-status-lbl {
    font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600;
    letter-spacing: 2.5px; color: rgba(74,222,128,0.65); text-transform: uppercase;
}

/* Logo orbit ring + spinning dot */
.splash-logo-wrapper {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center; z-index: 2;
}
.logo-orbit-ring {
    position: absolute; inset: -22px; border-radius: 46px;
    border: 1px solid rgba(56,189,248,0.14);
    box-shadow: 0 0 30px rgba(56,189,248,0.07), inset 0 0 20px rgba(56,189,248,0.03);
    pointer-events: none;
}
.logo-orbit-dot {
    position: absolute; inset: -22px; border-radius: 46px;
    animation: orbitDotSpin 5.5s linear infinite; pointer-events: none;
}
.logo-orbit-dot::before {
    content: ''; position: absolute;
    width: 8px; height: 8px; top: -4px; left: calc(50% - 4px);
    background: var(--accent-sky); border-radius: 50%;
    box-shadow: 0 0 8px rgba(56,189,248,0.55), 0 0 16px rgba(56,189,248,0.28), 0 0 32px rgba(56,189,248,0.12);
}
@keyframes orbitDotSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Auth glass card */
.auth-glass-card {
    position: relative; width: 100%; box-sizing: border-box;
    background: rgba(4,9,15,0.82); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(56,189,248,0.2); border-radius: 18px;
    padding: 28px 26px 22px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.04) inset, 0 28px 72px rgba(0,0,0,0.55), 0 0 50px rgba(56,189,248,0.08);
    animation: authCardIn 0.52s cubic-bezier(0.34,1.56,0.64,1) both;
}
.auth-glass-card::before {
    content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,0.55), transparent);
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-lock-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.22);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-sky); box-shadow: 0 0 22px rgba(56,189,248,0.2); margin-bottom: 2px;
}
.auth-card-title {
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 3px; color: rgba(255,255,255,0.88); text-transform: uppercase;
}
.auth-card-sub {
    font-family: 'Inter', sans-serif; font-size: 10px; color: var(--text-muted);
    letter-spacing: 0.3px; text-align: center; margin-top: -6px; margin-bottom: 2px;
}

/* Splash footer tagline */
.splash-footer {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 500;
    letter-spacing: 2.5px; color: rgba(255,255,255,0.18); text-transform: uppercase;
    white-space: nowrap; z-index: 10; pointer-events: none;
}
