﻿:root {
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --brand-soft: rgba(79, 70, 229, 0.1);
    --sidebar-bg: #0f0f10;
}

body {
    min-height: 100vh;
    background-color: #f5f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Card shell ── */
.access-card {
    width: 100%;
    max-width: 860px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
    border: none;
}

/* ── Sidebar ── */
.sidebar {
    background-color: var(--sidebar-bg);
    padding: 2.5rem 2rem;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

    .sidebar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( -45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px );
        pointer-events: none;
    }

.sidebar-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.3px;
}

    .sidebar-logo .accent {
        color: #818cf8;
    }

.sidebar-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.5;
}

    .step-item.active {
        color: rgba(255,255,255,0.88);
    }

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    flex-shrink: 0;
    color: rgba(255,255,255,0.28);
    margin-top: 1px;
}

.step-item.active .step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ── Main form panel ── */
.form-panel {
    padding: 2.75rem 2.5rem;
    background: #fff;
}

.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
}

.form-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #0f0f10;
    letter-spacing: -0.5px;
}

    .form-heading em {
        font-style: italic;
        color: var(--brand);
    }

.form-sub {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.65;
}

/* ── Inputs ── */
.form-label {
    font-size: 0.775rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
}

.form-control {
    font-size: 0.875rem;
    border-color: #e5e7eb;
    background: #f9f9fb;
    border-radius: 8px;
    height: 42px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .form-control:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
        background: #fff;
    }

    .form-control.is-invalid {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

.code-wrapper {
    position: relative;
}

    .code-wrapper .form-control {
        font-family: 'DM Mono', monospace;
        font-size: 0.83rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding-right: 6.5rem;
    }

.code-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.04em;
    pointer-events: none;
}

/* ── Submit button ── */
.btn-submit {
    background-color: #0f0f10;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 46px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-submit:hover {
        background: #1f1f22;
        color: #fff;
    }

    .btn-submit:active {
        transform: scale(0.985);
    }

/* ── Legal ── */
.legal-text {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.65;
}

    .legal-text a {
        color: #6b7280;
    }

/* ── Divider ── */
.divider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    font-size: 0.75rem;
}

    .divider-row hr {
        flex: 1;
        margin: 0;
        border-color: #e5e7eb;
    }

/* ── Success panel ── */
#successPanel {
    display: none;
    padding: 2.75rem 2.5rem;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.success-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand);
    margin-bottom: 1.25rem;
}

.success-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    color: #0f0f10;
}

.success-msg {
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 300px;
    line-height: 1.65;
}

.btn-launch {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 46px;
    padding: 0 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}

    .btn-launch:hover {
        background: var(--brand-dark);
        color: #fff;
    }

/* ── Responsive ── */
@media (max-width: 640px) {
    .form-panel, #successPanel {
        padding: 2rem 1.5rem;
    }

    .sidebar {
        padding: 2rem 1.5rem;
    }

    .form-heading {
        font-size: 1.6rem;
    }
}

.hidden {
    display: none;
}