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

:root {
    --bg-base: #020204;
    --bg-surface: rgba(8, 8, 12, 0.45);
    --bg-surface-elevated: rgba(14, 14, 22, 0.7);
    --border-glass: rgba(255, 255, 255, 0.04);
    --border-glass-hover: rgba(255, 255, 255, 0.08);
    
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.15);
    --accent-indigo-gradient: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
    
    --accent-cyan: #06b6d4;
    --accent-rose: #f43f5e;
    --accent-emerald: #10b981;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-premium: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 24px;
}

/* ─── BACKGROUND GLOW ─── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -100;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.8;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.02) 60%, transparent 100%);
    filter: blur(80px);
    z-index: -90;
    pointer-events: none;
}

/* ─── SPLIT CONTAINER ─── */
.submit-panel {
    width: 100%;
    max-width: 980px;
    background: rgba(4, 4, 6, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
    min-height: 580px;
    animation: panelAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── LEFT PANEL (EDITORIAL TECH INFO) ─── */
.panel-editorial {
    background: rgba(2, 2, 3, 0.4);
    border-right: 1px solid var(--border-glass);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.brand-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.editorial-content h1 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 36px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.editorial-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Terminal Checklist Widget */
.tech-readout {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
}

.readout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.readout-row:last-child {
    margin-bottom: 0;
}

.readout-key {
    color: var(--text-secondary);
}

.readout-val {
    font-weight: bold;
}

.readout-val.active {
    color: var(--accent-emerald);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 600;
    margin-top: 24px;
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-2px);
}

/* ─── RIGHT PANEL (FORM COCKPIT) ─── */
.panel-form {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Steps Progress Neon Bar */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 36px;
}

.step {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.step.active {
    background: rgba(99, 102, 241, 0.15);
}

.step.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-indigo-gradient);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    animation: stepSlide 0.6s ease;
}

@keyframes stepSlide {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.form-header {
    text-align: left;
    margin-bottom: 32px;
}

.form-header h2 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group {
    text-align: left;
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    outline: none;
}

.input-container input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

/* Laser highlight under input */
.input-laser {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--accent-indigo-gradient);
    transition: var(--transition-premium);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.input-container input:focus ~ .input-laser {
    width: 100%;
}

/* Captcha Panel */
.captcha-container {
    margin-bottom: 28px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px dashed var(--border-glass);
    transition: var(--transition-fast);
}

.captcha-container:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

/* ─── SPECTACULAR DRAG AND DROP AREA ─── */
.drag-drop-area {
    border: 1.5px dashed rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.01);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 28px;
    cursor: pointer;
    transition: var(--transition-premium);
}

.drag-drop-area.drag-over {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.03);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.drag-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-indigo);
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.drag-drop-area.drag-over .drag-icon {
    color: var(--accent-cyan);
    transform: translateY(-4px);
}

.drag-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.drag-subtitle {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-indigo-gradient);
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
    border-color: rgba(255,255,255,0.15);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.divider-block {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

.divider-text {
    padding: 0 16px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-discord {
    width: 100%;
    padding: 14px;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.35);
}

/* Feedback Messages */
#msg {
    margin-top: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.success {
    color: var(--accent-emerald) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.error {
    color: var(--accent-rose) !important;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
}

/* ─── RESPONSIVE BREAKPOINT ─── */
@media (max-width: 860px) {
    .submit-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .panel-editorial {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 32px;
    }
    
    .panel-form {
        padding: 32px;
    }
}
