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

:root {
    --bg-void: #050307;
    --panel-dark: #0c0710;
    --border-bruise: #3d122b;
    --blood-red: #ff1e56;
    --lich-green: #39ff14;
    --spectral-teal: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--bg-void);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(61, 18, 43, 0.2) 0%, transparent 85%),
        linear-gradient(rgba(255, 30, 86, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 30, 86, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px, 24px 24px;
}

.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
    background-size: 100% 4px;
    z-index: 999;
    opacity: 0.75;
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0% { opacity: 0.72; }
    50% { opacity: 0.82; }
    100% { opacity: 0.75; }
}

.retro-box {
    background: linear-gradient(135deg, rgba(16, 9, 22, 0.95) 0%, rgba(6, 3, 10, 0.98) 100%);
    border: 2px solid var(--border-bruise);
    box-shadow: inset 0 0 25px rgba(255, 30, 86, 0.12), 0 0 30px rgba(10, 3, 15, 0.95);
    clip-path: polygon(
        16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), 
        calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px
    );
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    margin-top: 5vh;
}

.title-glow {
    text-shadow: 0 0 12px rgba(255, 30, 86, 0.8);
    color: var(--blood-red);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.2em;
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

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

.input-group label {
    display: block;
    color: var(--spectral-teal);
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
}

input {
    width: 100%;
    background-color: var(--panel-dark);
    border: 1px solid var(--border-bruise);
    color: var(--text-main);
    padding: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--blood-red);
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--blood-red);
    color: var(--text-main);
    border: none;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 30, 86, 0.3);
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #d11242;
}

.btn-secondary {
    background-color: var(--panel-dark);
    border: 1px solid var(--border-bruise);
    box-shadow: none;
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background-color: #1a0827;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-bruise);
}
.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }
.divider span { color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; }

.error-text {
    color: var(--blood-red);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    min-height: 1rem;
}

.hidden {
    display: none !important;
}

.text-link {
    color: var(--spectral-teal);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
}
