:root {
    --bg-start: #07111f;
    --bg-end: #02050d;
    --panel: rgba(9, 20, 40, 0.78);
    --panel-strong: rgba(5, 13, 28, 0.9);
    --line: rgba(114, 255, 228, 0.22);
    --line-strong: rgba(114, 255, 228, 0.46);
    --text-main: #f4fbff;
    --text-muted: rgba(233, 245, 255, 0.64);
    --teal: #72ffe4;
    --cyan: #49b6ff;
    --amber: #ffd77a;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 20% 20%, rgba(73, 182, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(114, 255, 228, 0.11), transparent 28%),
        linear-gradient(135deg, var(--bg-start), var(--bg-end));
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

#particles-layer,
.grid-overlay {
    position: fixed;
    inset: 0;
}

#particles-layer {
    z-index: 0;
}

.grid-overlay {
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.auth-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.hero-panel,
.login-card {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 20, 39, 0.95), rgba(4, 9, 22, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel::before,
.login-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero-panel {
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.26rem;
    text-transform: uppercase;
    color: var(--teal);
}

.display-3,
.h1,
.h2 {
    font-family: 'Orbitron', sans-serif;
}

.text-highlight {
    color: var(--amber);
    text-shadow: 0 0 24px rgba(255, 215, 122, 0.24);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(114, 255, 228, 0.55);
    animation: pulse 1.8s infinite;
}

.typed-label,
.metric-label,
.micro-link,
.form-label,
.form-check-label {
    color: var(--text-muted);
}

.typed-line-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    min-height: 42px;
}

.typed-line {
    font-family: 'Orbitron', sans-serif;
    color: var(--teal);
    letter-spacing: 0.08rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.2rem;
    height: 100%;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-main);
}

.auth-single-layout {
    min-height: 100vh;
}

.login-card {
    max-width: 580px;
    overflow: hidden;
}

.login-card-glow {
    position: absolute;
    inset: auto;
    top: -4rem;
    right: -3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 255, 228, 0.24), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.compact-status {
    padding: 0.65rem 0.95rem;
    font-size: 0.92rem;
}

.shield-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 1.5rem;
    font-size: 1.7rem;
    color: var(--teal);
    background: linear-gradient(135deg, rgba(114, 255, 228, 0.18), rgba(73, 182, 255, 0.08));
    border: 1px solid rgba(114, 255, 228, 0.24);
}

.input-group-futuristic {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    overflow: hidden;
}

.input-group-futuristic .input-group-text,
.input-group-futuristic .form-control,
.reveal-btn {
    background: transparent;
    border: 0;
    color: var(--text-main);
}

.input-group-futuristic .input-group-text {
    color: var(--teal);
    padding-left: 1rem;
}

.input-group-futuristic .form-control {
    padding: 1rem 0.15rem;
    box-shadow: none;
}

.input-group-futuristic .form-control::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.input-group-futuristic:focus-within {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 0.22rem rgba(73, 182, 255, 0.14);
}

.reveal-btn {
    padding-inline: 1rem;
    color: rgba(255, 255, 255, 0.68);
}

.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 0;
    border-radius: 1.15rem;
    font-family: 'Orbitron', sans-serif;
    color: #04131e;
    background: linear-gradient(90deg, var(--teal), #9ef8ff);
    box-shadow: 0 20px 40px rgba(114, 255, 228, 0.2);
}

.btn-neon:hover,
.btn-neon:focus {
    color: #04131e;
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--text-main);
    border-color: rgba(114, 255, 228, 0.24);
    background: rgba(114, 255, 228, 0.06);
}

.micro-link {
    transition: color 0.2s ease;
}

.micro-link:hover {
    color: var(--teal);
}

.form-check-input {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: transparent;
}

.form-check-input:checked {
    background-color: var(--teal);
    border-color: var(--teal);
}

.alert-info {
    color: var(--text-main);
    background: rgba(73, 182, 255, 0.16);
    border: 1px solid rgba(73, 182, 255, 0.24);
}

.badge.text-bg-dark-subtle {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.orb {
    position: absolute;
    pointer-events: none;
}

.orb {
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.28;
}

.orb-a {
    top: -4rem;
    right: -3rem;
    background: radial-gradient(circle, rgba(114, 255, 228, 0.82), transparent 70%);
}

.orb-b {
    left: -4rem;
    bottom: -5rem;
    background: radial-gradient(circle, rgba(73, 182, 255, 0.75), transparent 70%);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(114, 255, 228, 0.55);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(114, 255, 228, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(114, 255, 228, 0);
    }
}

@media (max-width: 1199.98px) {
    .hero-panel {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
    }

    .hero-panel,
    .login-card {
        border-radius: 2rem !important;
    }

    .typed-line-wrap {
        align-items: flex-start;
    }
}