@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-abyss: #01060f;
    --bg-deep-blue: #041226;
    --cyan-bright: #00e5ff;
    --cyan-electric: #00a8ff;
    --blue-neon: #0066ff;
    --cyan-glow: rgba(0, 229, 255, 0.55);
    --gold: #DCA340;
    --gold-bright: #f3b952;
    --gold-glow: rgba(220, 163, 64, 0.35);
    --text-white: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #64748b;
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-abyss);
    background-image:
        radial-gradient(circle at 50% 36%, rgba(0, 180, 255, 0.22) 0%, rgba(0, 81, 255, 0.09) 42%, transparent 72%),
        linear-gradient(180deg, #010712 0%, #03132b 55%, #01050d 100%);
    color: var(--text-white);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Futuristic Screen Frame Glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    box-shadow:
        inset 0 0 42px rgba(0, 210, 255, 0.22),
        inset 0 0 3px rgba(0, 229, 255, 0.58);
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.015) 3px,
        rgba(0, 229, 255, 0.015) 4px
    );
}

/* ==========================================
   INTERACTIVE MOUSE BACKGROUND LAYERS
   ========================================== */
#cyberInteractiveCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.cyber-mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 680px;
    height: 680px;
    margin-left: -340px;
    margin-top: -340px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 229, 255, 0.16) 0%,
        rgba(0, 119, 255, 0.07) 35%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    will-change: transform;
}

.cyber-cursor-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
    border: 1px solid rgba(0, 229, 255, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35), inset 0 0 8px rgba(0, 229, 255, 0.2);
    transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.cyber-cursor-hud::before,
.cyber-cursor-hud::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 229, 255, 0.4);
}

.cyber-cursor-hud .cursor-core {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 10px var(--cyan-bright);
}

.cyber-cursor-hud .cursor-coords {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--cyan-bright);
    white-space: nowrap;
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px var(--cyan-bright);
    background: rgba(2, 12, 28, 0.75);
    padding: 2px 6px;
    border-left: 2px solid var(--cyan-bright);
    border-radius: 2px;
}

.cyber-cursor-hud.is-hovering {
    width: 64px;
    height: 64px;
    margin-left: -32px;
    margin-top: -32px;
    border-color: var(--gold-bright);
    box-shadow: 0 0 24px rgba(243, 185, 82, 0.55), inset 0 0 12px rgba(0, 229, 255, 0.35);
}

.hud-telemetry-panel {
    position: fixed;
    z-index: 4;
    pointer-events: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: rgba(0, 229, 255, 0.75);
    letter-spacing: 0.12em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-telemetry-left {
    bottom: 68px;
    left: 28px;
    border-left: 2px solid var(--cyan-bright);
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent);
}

.hud-telemetry-right {
    bottom: 68px;
    right: 28px;
    text-align: right;
    border-right: 2px solid var(--cyan-bright);
    padding-right: 10px;
    background: linear-gradient(-90deg, rgba(0, 229, 255, 0.08), transparent);
}

.hud-bar-equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 12px;
}

.hud-bar-equalizer span {
    display: inline-block;
    width: 3px;
    height: 100%;
    background: var(--cyan-bright);
    box-shadow: 0 0 6px var(--cyan-bright);
    transform-origin: bottom;
}

.cyber-shockwave {
    position: fixed;
    border: 2px solid var(--cyan-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 25px var(--cyan-bright), inset 0 0 15px var(--cyan-bright);
}

.login-bg-grid {
    position: fixed;
    inset: -40px;
    background-image:
        linear-gradient(to right, rgba(0, 229, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 82%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.circuit-canvas-overlay {
    position: fixed;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
    will-change: transform;
    transform: translateZ(0);
}

.circuit-line {
    fill: none;
    stroke: rgba(0, 229, 255, 0.28);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.circuit-pulse {
    fill: none;
    stroke: var(--cyan-bright);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.circuit-node {
    fill: var(--cyan-bright);
}

/* Back to Landing Top Link */
.top-nav-bar {
    position: relative;
    z-index: 10;
    padding: 1.25rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back-landing {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--cyan-bright);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 4px;
    background: rgba(3, 18, 40, 0.72);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    backdrop-filter: blur(8px);
}

.btn-back-landing:hover {
    color: #020813;
    background: var(--cyan-bright);
    box-shadow: 0 0 22px var(--cyan-glow);
}

/* Header & Logo */
.logo-container {
    margin-top: 1.5vh;
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
    z-index: 5;
}

.logo-img {
    max-width: 102px;
    filter: drop-shadow(0 0 26px rgba(0, 229, 255, 0.55));
}

.brand-cyber-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.18em;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.brand-cyber-title span {
    color: var(--cyan-bright);
    text-shadow: 0 0 16px var(--cyan-bright);
}

.terminal-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 3.5px;
    color: var(--cyan-bright);
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.6rem;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
    position: relative;
    z-index: 5;
}

/* Centered Futuristic Login / Exclusive Card Registration Box */
.login-stage-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 1rem;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-stage-container.expanded-for-cards {
    max-width: 920px;
}

.login-box {
    background:
        radial-gradient(500px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 0%), rgba(0, 229, 255, 0.16), transparent 65%),
        linear-gradient(160deg, rgba(6, 24, 52, 0.88) 0%, rgba(2, 10, 24, 0.95) 100%);
    border: 1.5px solid rgba(0, 229, 255, 0.52);
    border-radius: 16px;
    padding: 2.2rem 2.2rem 2.4rem;
    width: 100%;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.82),
        0 0 40px rgba(0, 174, 255, 0.26),
        inset 0 0 26px rgba(0, 210, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), #ffffff, var(--cyan-bright), transparent);
    box-shadow: 0 0 18px var(--cyan-bright);
}

/* Futuristic Mode Switcher Tabs */
.terminal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: rgba(2, 9, 22, 0.82);
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.26);
    margin-bottom: 1.85rem;
}

.terminal-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 0.5rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.terminal-tab-btn:hover {
    color: #ffffff;
}

.terminal-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 102, 255, 0.28) 100%);
    border-color: rgba(0, 229, 255, 0.68);
    color: var(--cyan-bright);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
}

/* Form Controls */
.form-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    color: var(--cyan-bright);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.input-group {
    margin-bottom: 1.35rem;
}

.input-group-text {
    background-color: rgba(3, 14, 32, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.32);
    border-right: none;
    color: var(--cyan-bright);
    border-radius: 6px 0 0 6px;
    transition: all 0.25s ease;
}

.form-control {
    background-color: rgba(3, 14, 32, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.32);
    border-left: none;
    color: var(--text-white);
    box-shadow: none !important;
    padding: 0.78rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.form-control:focus {
    background-color: rgba(5, 22, 48, 0.96);
    color: var(--text-white);
}

.form-control::placeholder {
    color: #475569;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--cyan-bright);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.28);
}

/* Action Buttons */
.btn-gold {
    background: rgba(220, 163, 64, 0.12);
    color: var(--gold-bright);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    border: 1px solid var(--gold);
    padding: 0.88rem;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
    margin-top: 0.5rem;
    box-shadow: 0 0 18px rgba(220, 163, 64, 0.18);
}

.btn-gold:hover {
    background-color: var(--gold);
    color: #020813;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow), 0 0 10px var(--gold-bright);
}

.btn-cyan-neon {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 110, 255, 0.3) 100%);
    color: var(--cyan-bright);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    border: 1px solid var(--cyan-bright);
    padding: 0.88rem;
    font-size: 0.82rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.28);
}

.btn-cyan-neon:hover {
    background: var(--cyan-bright);
    color: #020813;
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--cyan-glow);
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox .form-check-input {
    background-color: transparent;
    border-color: rgba(0, 229, 255, 0.45);
    margin-top: 0;
    cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--cyan-bright);
    border-color: var(--cyan-bright);
    box-shadow: 0 0 10px var(--cyan-bright);
}

.custom-checkbox .form-check-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.55rem;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
}

/* ==========================================
   EXCLUSIVE CARDS MINI-STAGE IN REGISTRATION TAB
   ========================================== */
.exclusive-register-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    align-items: center;
}

.mini-cards-showcase {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1100px;
}

.mini-holo-stage {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 310px;
    transform-style: preserve-3d;
}

.mini-holo-stage .holo-card {
    position: absolute;
    width: 215px;
    height: 265px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 155, 255, 0.28) 0%, rgba(3, 15, 36, 0.95) 70%),
        linear-gradient(145deg, rgba(8, 34, 72, 0.94) 0%, rgba(2, 10, 24, 0.98) 100%);
    border: 1.5px solid rgba(0, 229, 255, 0.75);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.78),
        0 0 26px rgba(0, 195, 255, 0.4),
        inset 0 0 20px rgba(0, 210, 255, 0.24);
    padding: 1rem 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transform-style: preserve-3d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mini-holo-stage .holo-card.is-active-card {
    border-color: #7ef4ff;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.85),
        0 0 38px rgba(0, 229, 255, 0.75),
        inset 0 0 24px rgba(0, 229, 255, 0.38);
    z-index: 10 !important;
}

.mini-holo-stage .holo-card-qr {
    left: 0;
    top: 24px;
    z-index: 6;
    transform: rotateY(12deg) rotateZ(-4deg);
}

.mini-holo-stage .holo-card-barcode {
    right: 0;
    top: 6px;
    z-index: 5;
    transform: rotateY(-14deg) rotateZ(5deg);
}

.mini-holo-stage .card-brand-argos {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    color: #fff;
    display: block;
}

.mini-holo-stage .card-brand-360 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--cyan-bright);
    text-shadow: 0 0 12px var(--cyan-bright);
    display: block;
}

.mini-holo-stage .qr-hud-wrapper {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-holo-stage .qr-box {
    width: 86px;
    height: 86px;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
}

.mini-holo-stage .qr-laser-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, #00e5ff, #ffffff, #00e5ff, transparent);
    box-shadow: 0 0 10px #00e5ff;
}

.mini-holo-stage .barcode-plate {
    width: 94%;
    background: #fff;
    border-radius: 6px;
    padding: 7px 8px 4px;
    text-align: center;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

/* Footer */
.footer-text {
    color: var(--text-muted);
    font-size: 0.64rem;
    line-height: 1.6;
    text-align: center;
    max-width: 520px;
    margin: 2.2rem auto 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 5;
}

.footer-links {
    position: relative;
    z-index: 5;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 14px;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--cyan-bright);
    text-shadow: 0 0 10px var(--cyan-bright);
}

.absolute-footer {
    margin-top: auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.64rem;
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-top: 1px solid rgba(0, 229, 255, 0.18);
    background: rgba(1, 6, 15, 0.82);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.status-dot {
    color: var(--cyan-bright);
    margin-right: 6px;
    font-size: 0.75rem;
    text-shadow: 0 0 10px var(--cyan-bright);
}

@media (max-width: 991.98px) {
    .cyber-cursor-hud,
    .hud-telemetry-panel {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .exclusive-register-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 1.6rem 1.35rem;
    }

    .absolute-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
