/* ============================================================
   AlunaCore Universe — Login Theme
   Blue / Violet / Cyan sci-fi aesthetic
   ============================================================ */

html, body { min-height: 100%; }

html {
    background: #020810;
    background-image: none !important;
}
html.no-js { background-image: none !important; }

* { box-sizing: border-box; }

body {
    position: relative;
    margin: 0;
    background: radial-gradient(ellipse at 50% 35%, #0a1628 0%, #06091a 50%, #020810 100%);
    overflow-x: hidden;
}

/* ── Animated background layers ── */
.login-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.login-background .bg-1,
.login-background .bg-2,
.login-background .bg-3 {
    position: absolute;
    inset: 0;
}
/* Blue nebula */
.login-background .bg-1 {
    background: radial-gradient(ellipse at 30% 60%, rgba(0, 100, 255, 0.14), transparent 60%);
}
/* Violet nebula */
.login-background .bg-2 {
    background: radial-gradient(ellipse at 70% 40%, rgba(100, 20, 220, 0.18), transparent 58%);
}
/* Dark overlay gradient bottom */
.login-background .bg-3 {
    background: linear-gradient(180deg, rgba(2, 8, 16, 0.15) 0%, rgba(2, 8, 16, 0.72) 100%);
}

#warp-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#page {
    position: relative;
    z-index: 2;
}


/* ============================================================
   HEADER SHELL — full-width, no card/box look
   ============================================================ */
.login-header-wrap {
    position: relative;
    z-index: 100;
}

/* ── Primary Navbar ── */
.login-navbar-shell {
    background: rgba(2, 6, 18, 0.88);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    position: relative;
}
/* Cyan + violet top accent line */
.login-navbar-shell::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.85) 25%,
        rgba(123, 79, 255, 0.85) 75%,
        transparent 100%
    );
}

.login-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 72px;
}

/* ── Brand ── */
.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.login-brand-mark {
    font-size: 1.1rem;
    color: rgba(0, 212, 255, 0.55);
    line-height: 1;
    transition: color 0.3s, text-shadow 0.3s;
}
.login-brand:hover .login-brand-mark {
    color: rgba(0, 212, 255, 0.90);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.70);
}
.login-brand-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.login-brand-primary {
    font-family: "Orbitron", sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 0.20em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.55), 0 0 28px rgba(0, 140, 255, 0.38);
    line-height: 1.1;
    transition: text-shadow 0.3s;
}
.login-brand:hover .login-brand-primary {
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.88), 0 0 38px rgba(0, 160, 255, 0.60);
}
.login-brand-secondary {
    font-family: "Orbitron", sans-serif;
    font-size: 0.60rem;
    font-weight: 400;
    letter-spacing: 0.45em;
    color: rgba(0, 212, 255, 0.60);
    line-height: 1.2;
}
.login-brand-devuni {
    color: rgba(160, 120, 255, 0.75);
    letter-spacing: 0.35em;
}

/* ── Nav Links ── */
.login-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lnl-item {
    font-family: "Orbitron", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(140, 200, 255, 0.75);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, text-shadow 0.2s;
    white-space: nowrap;
}
.lnl-item .lnl-b {
    color: rgba(0, 212, 255, 0.45);
    transition: color 0.2s;
}
.lnl-item:hover {
    color: #00D4FF;
    background: rgba(0, 180, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.50);
}
.lnl-item:hover .lnl-b,
.lnl-item.lnl-active .lnl-b {
    color: rgba(0, 212, 255, 0.90);
}
.lnl-item.lnl-active {
    color: #00D4FF;
    background: rgba(0, 180, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.32), 0 0 14px rgba(0, 180, 255, 0.18);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.65);
}

/* ── Nav Actions (right) ── */
.login-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language dropdown */
.login-lang-btn {
    font-family: "Orbitron", sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    color: rgba(140, 200, 255, 0.80);
    background: rgba(0, 30, 70, 0.40);
    border: 1px solid rgba(0, 160, 255, 0.30);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.login-lang-btn:hover, .login-lang-btn:focus {
    color: #00D4FF;
    border-color: rgba(0, 212, 255, 0.55);
    background: rgba(0, 50, 110, 0.45);
    outline: none;
}
.login-lang-menu { min-width: 140px; }
.login-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(180, 220, 255, 0.88);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.login-lang-option:hover {
    background: rgba(0, 80, 180, 0.35);
    color: #fff;
}

/* Hamburger */
.login-hamburger {
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem;
    color: rgba(0, 212, 255, 0.75);
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}
.login-hamburger .lnl-b { font-size: 0.9rem; }
.login-hamburger:hover { color: #00D4FF; }


/* ============================================================
   SCANNER BAR — second strip below navbar
   ============================================================ */
.login-scanner-bar {
    position: relative;
    height: 34px;
    overflow: hidden;
    background: linear-gradient(90deg,
        rgba(0, 10, 30, 0.95) 0%,
        rgba(0, 20, 55, 0.90) 40%,
        rgba(5, 10, 35, 0.92) 100%
    );
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

/* The sweeping scanner light */
.lsb-sweep {
    position: absolute;
    top: 0;
    left: -25%;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.10) 40%,
        rgba(0, 212, 255, 0.22) 60%,
        transparent 100%
    );
    animation: lsbSweep 3.2s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes lsbSweep {
    0%   { left: -25%; }
    100% { left: 110%; }
}

.lsb-content {
    position: relative;
    z-index: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Left: scan indicator */
.lsb-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.lsb-scan-indicator {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    color: rgba(0, 212, 255, 0.70);
    min-width: 26px;
    display: inline-block;
    text-align: center;
}
.lsb-scan-label {
    font-family: "Orbitron", monospace;
    font-size: 0.40rem;
    letter-spacing: 0.30em;
    color: rgba(0, 212, 255, 0.38);
    text-transform: uppercase;
}
.lsb-chevrons {
    font-size: 0.52rem;
    color: rgba(0, 212, 255, 0.50);
    letter-spacing: -0.05em;
    min-width: 80px;
    display: inline-block;
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.35);
}

/* Right: stats */
.lsb-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.lsb-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}
.lsb-stat-label {
    font-family: "Space Mono", monospace;
    font-size: 0.50rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(120, 185, 255, 0.65);
    white-space: nowrap;
}
.lsb-stat-sep {
    font-size: 0.58rem;
    color: rgba(0, 212, 255, 0.40);
}
.lsb-stat-value {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00D4FF;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.80);
    min-width: 22px;
    text-align: right;
    display: inline-block;
}
.lsb-divider {
    color: rgba(0, 212, 255, 0.20);
    font-size: 1.0rem;
    padding: 0 2px;
}
.lsb-bracket-close {
    font-size: 0.75rem;
    color: rgba(0, 212, 255, 0.38);
}

/* ── Scanner bar market scroll ── */
.lsb-market-label {
    flex-shrink: 0;
}
.lsb-market-scroll-outer {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.lsb-market-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: lsbMarketScroll 40s linear infinite;
}
.lsb-market-scroll-outer:hover .lsb-market-track {
    animation-play-state: paused;
}
.lsb-market-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px 0 0;
    font-size: 0.50rem;
}
.lsb-market-item::before {
    content: '·';
    color: rgba(0, 180, 255, 0.35);
    margin-right: 3px;
}
.lsb-market-res {
    font-family: "Space Mono", monospace;
    color: rgba(140, 195, 255, 0.75);
    letter-spacing: 0.05em;
}
.lsb-market-price {
    font-family: "Space Mono", monospace;
    color: rgba(0, 212, 255, 0.90);
    font-weight: 700;
}
@keyframes lsbMarketScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── lsb-right: allow market scroll to flex-shrink ── */
.lsb-right {
    min-width: 0;
    flex-shrink: 1;
    max-width: 100%;
}

/* ============================================================
   MOBILE OFFCANVAS
   ============================================================ */
.login-offcanvas {
    background: rgba(4, 10, 28, 0.97);
    border-right: 1px solid rgba(0, 180, 255, 0.20);
}
.login-offcanvas-title {
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #00D4FF;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.55);
}
.login-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.login-mobile-nav li a {
    display: block;
    padding: 14px 20px;
    font-family: "Orbitron", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(140, 200, 255, 0.80);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 180, 255, 0.10);
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.login-mobile-nav li a:hover,
.login-mobile-nav li a.active {
    color: #00D4FF;
    background: rgba(0, 80, 180, 0.18);
    padding-left: 28px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.45);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer.footer-container {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    position: fixed;
    border-radius: 16px;
    border: 1px solid rgba(0, 160, 255, 0.25);
    background: linear-gradient(145deg, rgba(4, 16, 40, 0.28), rgba(6, 8, 20, 0.32));
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 100, 200, 0.15);
    text-align: center;
    width: max-content;
    max-width: calc(100% - 24px);
}
footer.footer-container a {
    color: rgba(140, 200, 255, 0.85);
}
footer.footer-container a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.50);
}

/* ============================================================
   LOGIN FORM AREA
   ============================================================ */
.login-center-wrap {
    width: 100%;
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vh 16px 130px;
}

/* ── DEFCON Banner ── */
.login-defcon-banner {
    width: 100%;
    max-width: 430px;
    margin: 0 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 180, 255, 0.45);
    padding: 10px 14px;
    text-align: center;
    background: linear-gradient(145deg, rgba(4, 20, 60, 0.55), rgba(8, 10, 24, 0.72));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 120, 255, 0.24);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
}
.login-defcon-kicker {
    color: rgba(180, 220, 255, 0.90);
    font-family: "Rajdhani", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.78rem;
    font-weight: 700;
}
.login-defcon-value {
    margin-top: 3px;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.login-defcon-description {
    margin-top: 5px;
    color: rgba(180, 220, 255, 0.88);
    font-size: 0.84rem;
    line-height: 1.35;
    text-wrap: balance;
}

/* DEFCON level colors — green=peace, red=war (keep semantic) */
.login-defcon-level-5 .login-defcon-value {
    color: #85ffac;
    text-shadow: 0 0 10px rgba(133, 255, 172, 0.55);
}
.login-defcon-level-4 .login-defcon-value {
    color: #ffe98f;
    text-shadow: 0 0 12px rgba(255, 233, 143, 0.52);
}
.login-defcon-level-3 .login-defcon-value {
    color: #ffbf81;
    text-shadow: 0 0 12px rgba(255, 191, 129, 0.50);
}
.login-defcon-level-2 {
    animation: loginDefconPulseSoft 1.35s ease-in-out infinite;
}
.login-defcon-level-2 .login-defcon-value {
    color: #ff9a9a;
    text-shadow: 0 0 12px rgba(255, 96, 96, 0.62);
}
.login-defcon-level-1 {
    animation: loginDefconPulseHard 0.9s ease-in-out infinite;
}
.login-defcon-level-1 .login-defcon-value {
    color: #ffd5d5;
    text-shadow: 0 0 14px rgba(255, 65, 65, 0.85), 0 0 28px rgba(255, 22, 22, 0.72);
}
@keyframes loginDefconPulseSoft {
    0%, 100% { box-shadow: 0 14px 34px rgba(0,0,0,0.48), 0 0 16px rgba(255, 72, 72, 0.32); border-color: rgba(255, 115, 115, 0.50); }
    50%       { box-shadow: 0 22px 50px rgba(0,0,0,0.62), 0 0 34px rgba(255, 72, 72, 0.70); border-color: rgba(255, 142, 142, 0.85); }
}
@keyframes loginDefconPulseHard {
    0%, 100% { box-shadow: 0 16px 36px rgba(0,0,0,0.55), 0 0 18px rgba(255, 43, 43, 0.42); border-color: rgba(255, 115, 115, 0.55); }
    50%       { box-shadow: 0 26px 60px rgba(0,0,0,0.70), 0 0 46px rgba(255, 36, 36, 0.88); border-color: rgba(255, 155, 155, 0.95); }
}

/* ── Login / Register Panel ── */
.login-container {
    width: 100%;
    max-width: 430px;
}
.register-cta-wrap {
    width: 100%;
    max-width: 430px;
    margin-top: 10px;
}
.login-panel {
    border: 1px solid rgba(0, 160, 255, 0.38);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(4, 20, 55, 0.40), rgba(6, 8, 20, 0.50));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(0, 80, 200, 0.30), inset 0 1px 0 rgba(0, 180, 255, 0.14);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    padding: 26px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.login-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 200, 255, 0.65);
    background: linear-gradient(145deg, rgba(5, 25, 65, 0.48), rgba(6, 8, 22, 0.56));
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.78), 0 0 65px rgba(0, 100, 255, 0.40), inset 0 1px 0 rgba(0, 200, 255, 0.20);
}

.login-heading {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 1.5em;
    margin-bottom: 14px;
    color: #b8dcff;
    text-shadow: 0 0 14px rgba(0, 160, 255, 0.40);
    letter-spacing: 0.06em;
}

/* ── Inputs ── */
.login-form .form-control,
.login-form .form-select,
.login-input {
    background: rgba(0, 30, 70, 0.45) !important;
    border: 1px solid rgba(0, 160, 255, 0.38) !important;
    color: #d4eeff !important;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.login-form .form-control::placeholder {
    color: rgba(140, 200, 255, 0.70);
}
.login-form .form-control:focus,
.login-form .form-select:focus,
.login-input:focus {
    background: rgba(0, 40, 90, 0.55) !important;
    border-color: rgba(0, 212, 255, 0.90) !important;
    box-shadow: 0 0 0 0.16rem rgba(0, 180, 255, 0.35), 0 0 14px rgba(0, 180, 255, 0.28) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.login-form select option {
    background: #071428;
    color: #d4eeff;
}

/* ── Checkboxes ── */
.login-remember span,
.register-form #rules + span {
    color: rgba(180, 220, 255, 0.90);
}
.login-remember input[type="checkbox"],
.register-check-row input[type="checkbox"] {
    accent-color: #0080ff;
}

/* ── Buttons ── */
.login-btn,
.login-register-btn,
.login-secondary-btn {
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.login-btn {
    background: linear-gradient(135deg, #0a3a8a 0%, #1060d0 48%, #1a80ff 100%);
    border-color: rgba(80, 160, 255, 0.75);
    box-shadow: 0 8px 22px rgba(20, 80, 220, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #fff;
}
.login-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0d46a8 0%, #1570e8 48%, #2090ff 100%);
    box-shadow: 0 16px 34px rgba(20, 100, 255, 0.52), 0 0 22px rgba(0, 160, 255, 0.40);
    color: #fff;
}
.login-register-btn,
.login-secondary-btn {
    color: rgba(180, 225, 255, 0.95);
    background: rgba(0, 60, 140, 0.28);
    border-color: rgba(0, 160, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}
.login-register-btn {
    margin-top: 14px !important;
    background: linear-gradient(135deg, rgba(0, 80, 200, 0.38), rgba(80, 0, 200, 0.55));
    border-color: rgba(80, 160, 255, 0.80);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(80, 160, 255, 0.32), 0 12px 30px rgba(20, 80, 220, 0.38), 0 0 24px rgba(80, 100, 255, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    text-shadow: 0 0 8px rgba(80, 180, 255, 0.65);
}
.login-register-btn:hover,
.login-secondary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    background: rgba(0, 100, 255, 0.40);
    border-color: rgba(100, 200, 255, 0.78);
    box-shadow: 0 11px 26px rgba(0, 80, 220, 0.38), 0 0 16px rgba(80, 150, 255, 0.30);
}
.login-register-btn:hover {
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.48), rgba(100, 0, 240, 0.65));
    border-color: rgba(120, 200, 255, 0.90);
    box-shadow: 0 14px 34px rgba(20, 80, 255, 0.52), 0 0 36px rgba(80, 140, 255, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}


/* ============================================================
   REGISTER FORM
   ============================================================ */
.register-center-wrap {
    width: 100%;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 16px 130px;
}
.register-container {
    width: 100%;
    max-width: 580px;
    margin: 0;
}
.register-form label {
    color: rgba(180, 220, 255, 0.95);
    font-weight: 700;
}
.register-form .inputDesc,
.register-form .text-secondary {
    color: rgba(140, 190, 255, 0.78) !important;
}
.register-form .text { color: rgba(180, 225, 255, 0.92); }
.register-form .fbname { color: rgba(180, 220, 255, 0.96); }
.register-form .form-group {
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
}
.register-check-row label {
    color: rgba(180, 215, 255, 0.94);
    font-weight: 500;
}
.register-link {
    color: rgba(80, 180, 255, 0.95);
    text-decoration: underline;
    text-decoration-color: rgba(60, 160, 255, 0.65);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.register-link:hover {
    color: #cceeff;
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.52);
}
.register-submit-btn { margin-top: 10px; }

/* Role cards — blue/violet scheme (replaces inline styles) */
.role-card {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(4, 14, 40, 0.38);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.role-card:hover {
    border-color: rgba(0, 160, 255, 0.55);
    background: rgba(4, 20, 55, 0.50);
}
.role-card-active,
.role-card.role-card-active {
    border-color: rgba(0, 200, 255, 0.80) !important;
    background: rgba(4, 24, 65, 0.60) !important;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.25), inset 0 1px 0 rgba(0, 200, 255, 0.15) !important;
}
.role-card .fw-bold { color: #c8e8ff; }
.role-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.role-card-desc { font-size: 12px; color: #7abcdd; line-height: 1.5; }
.role-select-label { color: #b8dcff; }
.role-warning-text {
    font-size: 11px;
    color: #ef9a9a;
    margin-top: 6px;
}

#rules li, #rules ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.info { color: rgba(160, 210, 255, 0.80); font-size: 0.8em; }

/* ============================================================
   MISC
   ============================================================ */
.lang-flag {
    width: 24px;
    height: 14px;
    display: inline-block;
    border-radius: 5px;
}
.logo { width: 300px; }

/* Alert overrides for blue theme */
.alert-danger {
    background: rgba(60, 10, 30, 0.70) !important;
    border-color: rgba(255, 80, 80, 0.60) !important;
    color: #ffc2c2 !important;
    backdrop-filter: blur(8px);
}
.alert-success {
    background: rgba(0, 40, 20, 0.70) !important;
    border-color: rgba(0, 200, 100, 0.60) !important;
    color: #a0ffcc !important;
    backdrop-filter: blur(8px);
}


/* ============================================================
   HOLOGRAPHIC PANEL — edge fade + pulse
   ============================================================ */

/* Edges dissolve to transparent, like a hologram projection */
.login-panel,
.login-defcon-banner {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.95) 7%,
        rgba(255,255,255,0.95) 93%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.95) 7%,
        rgba(255,255,255,0.95) 93%,
        transparent 100%
    );
}

/* Gentle ambient pulse for the login/register panel */
.login-panel {
    animation: holoPanelPulse 5s ease-in-out infinite;
}

/* DEFCON banner pulse (base, levels 5/4/3) */
.login-defcon-banner {
    animation: holoDefconPulse 7s ease-in-out infinite;
}

/* Keep existing alert animations for levels 1+2, layer holo pulse on top */
.login-defcon-level-2 {
    animation: loginDefconPulseSoft 1.35s ease-in-out infinite,
               holoDefconPulse 6s ease-in-out infinite;
}
.login-defcon-level-1 {
    animation: loginDefconPulseHard 0.9s ease-in-out infinite,
               holoDefconPulse 4s ease-in-out infinite;
}

@keyframes holoPanelPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(0, 100, 255, 0));
        box-shadow: 0 30px 90px rgba(0,0,0,0.75), 0 0 50px rgba(0,80,200,0.30), inset 0 1px 0 rgba(0,180,255,0.14);
    }
    50% {
        filter: brightness(1.08) drop-shadow(0 0 45px rgba(0, 100, 255, 0.55));
        box-shadow: 0 30px 90px rgba(0,0,0,0.75), 0 0 90px rgba(0,110,255,0.58), 0 0 160px rgba(0,60,200,0.28), inset 0 1px 0 rgba(0,200,255,0.30);
    }
}
@keyframes holoDefconPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(0, 120, 255, 0));
        box-shadow: 0 18px 45px rgba(0,0,0,0.55), 0 0 22px rgba(0,120,255,0.24);
    }
    50% {
        filter: brightness(1.09) drop-shadow(0 0 38px rgba(0, 140, 255, 0.55));
        box-shadow: 0 22px 60px rgba(0,0,0,0.65), 0 0 70px rgba(0,150,255,0.52), 0 0 120px rgba(0,80,220,0.22);
    }
}

/* ── Text Glitch — DEFCON value + Login heading (text-shadow chromatic shift) ── */
.login-defcon-value,
.login-heading {
    animation: textGlitch 7s infinite;
}
@keyframes textGlitch {
    0%, 86%, 100% {
        transform: none;
        text-shadow: inherit;
        filter: none;
    }
    87% {
        transform: skewX(-3deg);
        text-shadow: -4px 0 rgba(0, 212, 255, 0.90), 4px 0 rgba(180, 60, 255, 0.85);
        filter: brightness(1.15);
    }
    88% {
        transform: skewX(2deg) translateX(-3px);
        text-shadow: 4px 0 rgba(0, 212, 255, 0.85), -3px 0 rgba(180, 60, 255, 0.80);
        filter: brightness(1.10);
    }
    89% {
        transform: none;
        text-shadow: -2px 0 rgba(0, 180, 255, 0.60), 2px 0 rgba(160, 80, 255, 0.55);
    }
    90% {
        transform: skewX(1deg);
        text-shadow: 3px 0 rgba(0, 220, 255, 0.95);
        filter: brightness(1.20);
    }
    91% {
        transform: none;
        text-shadow: inherit;
        filter: none;
    }
    93% {
        transform: translateX(-2px);
        text-shadow: -3px 0 rgba(180, 60, 255, 0.80), 2px 0 rgba(0, 212, 255, 0.70);
    }
    94% {
        transform: none;
        text-shadow: inherit;
        filter: none;
    }
}

/* ── Register CTA — strong pulse to attract new players ── */
.login-register-btn {
    animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0,80,200,0.30), 0 0 40px rgba(0,100,255,0.18);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.025);
        box-shadow: 0 8px 40px rgba(0,120,255,0.65), 0 0 80px rgba(100,50,255,0.40), 0 0 140px rgba(0,80,255,0.20);
        filter: brightness(1.12);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .login-navbar {
        display: flex;
        min-height: 62px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .login-nav-center { display: none; }
    .login-nav-actions { gap: 6px; }
    .login-nav-actions .dropdown { display: none; }
    .login-nav-actions .menu_icon {
        display: flex !important;
        padding-right: 0 !important;
    }
    .brand-title { font-size: 1.0rem; letter-spacing: 0.05em; }
}

@media (max-width: 750px) {
    .uk-navbar-nav { display: none; }
    .login-navbar {
        min-height: 62px;
        grid-template-columns: 1fr auto;
    }
    .login-hud-widget { display: none; } /* too cramped on small mobile */
    .login-center-wrap,
    .register-center-wrap {
        min-height: auto;
        padding: 15px 12px 145px;
    }
    .login-panel { padding: 20px 16px; }
    footer.footer-container {
        bottom: 8px;
        border-radius: 12px;
        font-size: 0.82rem;
        padding: 8px 10px;
    }
    .logo { width: 200px; }
    .main-menu { padding: 30px !important; }
}
