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

:root {
    --hack-bg: #030305;
    --hack-bg2: #0a0a0f;
    --hack-surface: rgba(8, 12, 18, 0.92);
    --hack-red: #ff0033;
    --hack-red-dim: #cc0028;
    --hack-red-glow: rgba(255, 0, 51, 0.45);
    --hack-green: #00ff41;
    --hack-green-dim: #00cc34;
    --hack-green-glow: rgba(0, 255, 65, 0.35);
    --hack-cyan: #00e5ff;
    --hack-text: #e8eaed;
    --hack-muted: #6b7280;
    --hack-border: rgba(255, 0, 51, 0.35);
    --hack-border-focus: rgba(0, 255, 65, 0.6);
    --hack-font: 'JetBrains Mono', 'Consolas', monospace;
    --hack-display: 'Orbitron', 'Segoe UI', sans-serif;
}

/* ── Splash screen ── */
.lt-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.lt-splash__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.lt-splash__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    animation: splashScan 8s linear infinite;
}

.lt-splash__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.lt-splash__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 720px;
}

.lt-splash__logo {
    font-family: var(--hack-display);
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--hack-red);
    text-shadow:
        0 0 10px var(--hack-red-glow),
        0 0 40px var(--hack-red-glow),
        0 0 80px rgba(255, 0, 51, 0.2);
    animation: splashGlitch 3s infinite;
    margin-bottom: 0.5rem;
}

.lt-splash__sub {
    font-family: var(--hack-font);
    font-size: clamp(0.65rem, 2vw, 0.85rem);
    color: var(--hack-green);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.lt-splash__warning {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--hack-red);
    background: rgba(255, 0, 51, 0.08);
    color: var(--hack-red);
    font-family: var(--hack-font);
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: splashPulse 1.2s ease-in-out infinite;
    margin-bottom: 2rem;
}

.lt-splash__warning-icon {
    font-size: 1.2rem;
    animation: splashBlink 0.6s step-end infinite;
}

.lt-splash__terminal {
    font-family: var(--hack-font);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--hack-green);
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 1rem 1.25rem;
    margin: 0 auto 1.5rem;
    max-width: 480px;
    min-height: 4.5rem;
    line-height: 1.7;
}

.lt-splash__terminal-line::before {
    content: '> ';
    color: var(--hack-red);
}

.lt-splash__cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    background: var(--hack-green);
    vertical-align: text-bottom;
    animation: splashCursor 0.8s step-end infinite;
}

.lt-splash__progress-wrap {
    width: min(420px, 85vw);
    margin: 0 auto;
}

.lt-splash__progress-label {
    font-family: var(--hack-font);
    font-size: 0.7rem;
    color: var(--hack-muted);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.lt-splash__progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.lt-splash__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--hack-red), var(--hack-green));
    box-shadow: 0 0 12px var(--hack-green-glow);
    transition: width 0.15s linear;
}

.lt-splash__skip {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--hack-font);
    font-size: 0.7rem;
    color: var(--hack-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}

.lt-splash__skip:hover {
    color: var(--hack-green);
}

.lt-splash__border-flash {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    animation: splashBorder 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes splashGlitch {
    0%, 90%, 100% { transform: translate(0); filter: none; }
    91% { transform: translate(-3px, 1px); filter: hue-rotate(90deg); }
    92% { transform: translate(3px, -1px); text-shadow: -2px 0 var(--hack-green), 2px 0 var(--hack-cyan); }
    93% { transform: translate(-1px, 2px); }
    94% { transform: translate(0); filter: none; }
}

@keyframes splashPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--hack-red-glow); }
    50% { box-shadow: 0 0 20px 4px var(--hack-red-glow); }
}

@keyframes splashBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes splashCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes splashScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes splashBorder {
    0%, 100% { border-color: transparent; }
    50% { border-color: rgba(255, 0, 51, 0.4); }
}

/* ── Auth shell (full body, no cards) ── */
body.auth-hacker {
    margin: 0;
    min-height: 100dvh;
    background: var(--hack-bg);
    color: var(--hack-text);
    font-family: var(--hack-font);
    overflow-x: hidden;
}

.auth-hacker-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-hacker-bg canvas {
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

.auth-hacker-bg .auth-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 6px
    );
}

.auth-hacker-bg .auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 0, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 51, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.auth-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(8px);
    font-family: var(--hack-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.auth-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--hack-text);
    font-weight: 700;
}

.auth-topbar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hack-green);
    box-shadow: 0 0 10px var(--hack-green-glow);
    animation: splashBlink 1.2s step-end infinite;
}

.auth-topbar__status {
    color: var(--hack-green);
    font-family: var(--hack-font);
    font-size: 0.75rem;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.auth-orb--red {
    width: 320px;
    height: 320px;
    top: 10%;
    right: 5%;
    background: rgba(255, 0, 51, 0.12);
}

.auth-orb--green {
    width: 280px;
    height: 280px;
    bottom: 15%;
    left: 10%;
    background: rgba(0, 255, 65, 0.08);
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
    padding-top: 52px;
}

.auth-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    border-right: 1px solid var(--hack-border);
    background: linear-gradient(160deg, rgba(255, 0, 51, 0.04) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 0, 51, 0.06), transparent 50%);
    animation: authGlow 6s ease-in-out infinite alternate;
}

@keyframes authGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.auth-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--hack-red);
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-side-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--hack-red);
    border-radius: 50%;
    animation: splashBlink 1s step-end infinite;
    box-shadow: 0 0 8px var(--hack-red-glow);
}

.auth-side h1 {
    font-family: var(--hack-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--hack-text);
    margin: 0 0 1rem;
    line-height: 1.1;
    position: relative;
}

.auth-side h1 span {
    color: var(--hack-red);
    text-shadow: 0 0 20px var(--hack-red-glow);
}

.auth-side-desc {
    color: var(--hack-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 28rem;
    position: relative;
}

.auth-terminal {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 255, 65, 0.15);
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--hack-green);
    position: relative;
}

.auth-terminal .line-red { color: var(--hack-red); }
.auth-terminal .line-dim { color: var(--hack-muted); }

.auth-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.auth-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.auth-stat__val {
    font-family: var(--hack-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hack-green);
    letter-spacing: 0.1em;
}

.auth-stat__lbl {
    font-size: 0.65rem;
    color: var(--hack-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 2rem 0;
}

.auth-frame__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--hack-red);
    border-style: solid;
    opacity: 0.7;
}

.auth-frame__corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.auth-frame__corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.auth-frame__corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.auth-frame__corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    min-height: 100dvh;
}

.auth-form-wrap {
    width: 100%;
    max-width: none;
}

/* ── Full-body form page (NO card) ── */
.auth-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-page-header {
    margin-bottom: 2.5rem;
}

.auth-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--hack-green);
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(0, 255, 65, 0.25);
    background: rgba(0, 255, 65, 0.04);
}

.auth-page-header h2 {
    font-family: var(--hack-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
    color: var(--hack-text);
}

.auth-page-header .subtitle {
    margin: 0;
    color: var(--hack-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-form-full {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.auth-form-full .form-group {
    margin-bottom: 0;
    border-bottom: 1px solid var(--hack-border);
    padding: 1.25rem 0;
    transition: border-color 0.25s, background 0.25s;
}

.auth-form-full .form-group:focus-within {
    border-bottom-color: var(--hack-border-focus);
    background: rgba(0, 255, 65, 0.02);
}

.auth-form-full .form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hack-red);
    margin-bottom: 0.65rem;
}

.auth-field-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-field-prefix {
    color: var(--hack-red);
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.8;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.auth-form-full .form-group input,
.auth-form-full input[type="email"],
.auth-form-full input[type="password"],
.auth-form-full input[type="text"],
.auth-form-full .pin-input {
    width: 100%;
    padding: 0.75rem 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--hack-text);
    font-family: var(--hack-font);
    font-size: 1.05rem;
    outline: none;
    box-shadow: none !important;
    flex: 1;
}

.auth-form-full input::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

.auth-form-full input:focus {
    outline: none;
    box-shadow: none !important;
}

.form-group--pin {
    padding-bottom: 1.5rem !important;
}

.pin-display {
    margin-bottom: 0.75rem;
}

.pin-slot-line {
    height: 2px;
    background: linear-gradient(90deg, var(--hack-red), transparent);
    margin-top: 0.5rem;
    opacity: 0.5;
}

.pin-dots {
    display: flex;
    justify-content: flex-start;
    gap: 0.85rem;
    margin: 0;
}

.pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--hack-border);
    background: transparent;
    transition: all 0.2s;
}

.pin-dot.filled {
    background: var(--hack-green);
    border-color: var(--hack-green);
    box-shadow: 0 0 10px var(--hack-green-glow);
    transform: scale(1.15);
}

.pin-input {
    letter-spacing: 0.45em;
    text-align: left;
    font-size: 1.35rem;
    font-weight: 700;
    padding-left: 0 !important;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--hack-muted);
    cursor: pointer;
    padding: 1.25rem 0;
    letter-spacing: 0.05em;
}

.auth-remember input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-remember__box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--hack-border);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.auth-remember input:checked + .auth-remember__box {
    border-color: var(--hack-green);
    background: rgba(0, 255, 65, 0.15);
}

.auth-remember input:checked + .auth-remember__box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hack-green);
    font-size: 0.7rem;
}

.btn-hacker__icon {
    font-size: 0.75rem;
    opacity: 0.9;
}

.btn-hacker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
    padding: 1.1rem 1.5rem;
    border: 1px solid var(--hack-red);
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.15), rgba(255, 0, 51, 0.05));
    color: var(--hack-red);
    font-family: var(--hack-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.btn-hacker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-hacker:hover {
    background: rgba(255, 0, 51, 0.2);
    box-shadow: 0 0 30px var(--hack-red-glow);
    color: #fff;
}

.btn-hacker:hover::before {
    transform: translateX(100%);
}

.btn-hacker:active {
    transform: scale(0.98);
}

.alert-error {
    background: rgba(255, 0, 51, 0.08);
    border: 1px solid rgba(255, 0, 51, 0.4);
    color: var(--hack-red);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.auth-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hack-border);
    text-align: center;
    color: var(--hack-muted);
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--hack-green);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.auth-links a:hover {
    text-shadow: 0 0 10px var(--hack-green-glow);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }

    .auth-main {
        padding: 1.5rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .auth-frame {
        max-width: none;
        padding: 1rem 0;
    }

    .auth-topbar {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .auth-page-header h2 {
        font-size: 1.5rem;
    }

    .auth-form-full .form-group {
        padding: 1rem 0;
    }
}
