/* ===================================
   Secure Access Gateway — Stylesheet
   Split-panel layout · Same color palette
   =================================== */

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

:root {
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-primary: #000000;
    --color-accent: #FFEA00;
    --color-text: #111111;
    --color-text-secondary: #666666;
    --color-text-muted: #AAAAAA;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.16);
    --color-success: #22C55E;
    --color-error: #E74C3C;
    --radius-card: 20px;
    --radius-btn: 12px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-bg);
    overflow: hidden;
}

/* ========== Layout — Two-column split ========== */

.layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ========== Left Panel ========== */

.panel {
    width: 42%;
    min-width: 340px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient accent */
.panel::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 234, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.panel::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 234, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.panel__content {
    position: relative;
    z-index: 1;
    animation: slideInLeft 0.7s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.panel__badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 234, 0, 0.1);
    border: 1px solid rgba(255, 234, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.panel__heading {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.panel__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

/* Decorative lines */
.panel__lines {
    display: flex;
    gap: 8px;
    margin-top: 48px;
}

.panel__lines span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--color-accent);
}

.panel__lines span:nth-child(1) { width: 40px; opacity: 1; }
.panel__lines span:nth-child(2) { width: 24px; opacity: 0.5; }
.panel__lines span:nth-child(3) { width: 12px; opacity: 0.25; }

.panel__copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

/* ========== Right Main Area ========== */

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Subtle background pattern on right side */
.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255, 234, 0, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(0, 0, 0, 0.015) 0%, transparent 50%);
    pointer-events: none;
}

/* ========== Card ========== */

.card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 44px 40px 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

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

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transition: box-shadow var(--transition);
}

/* Step indicator */
.card__step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.card__step-num {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-accent);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.card__step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Typography */
.card__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 10px;
}

.card__text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.card__divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: 28px 0;
}

/* Turnstile */
.card__turnstile {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    min-height: 65px;
}

/* Status */
.card__status {
    margin-bottom: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__status-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    transition: opacity var(--transition);
}

.card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-muted);
    animation: pulse 2s ease-in-out infinite;
}

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

.card__status-success {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-success);
    font-weight: 500;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.card__status-success.active {
    display: flex;
}

/* Button */
.card__btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--color-primary);
    color: var(--color-accent);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: not-allowed;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.35;
    position: relative;
    overflow: hidden;
}

.card__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 234, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.card__btn:not(:disabled):hover::before {
    left: 100%;
}

.card__btn:disabled {
    pointer-events: none;
}

.card__btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    animation: btnReveal 0.5s ease-out;
}

.card__btn:not(:disabled):hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card__btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes btnReveal {
    from { opacity: 0.35; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card__btn-arrow {
    transition: transform var(--transition);
}

.card__btn:not(:disabled):hover .card__btn-arrow {
    transform: translateX(3px);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    body {
        overflow: auto;
    }

    .panel {
        width: 100%;
        min-width: unset;
        padding: 40px 28px 32px;
    }

    .panel__heading {
        font-size: 28px;
    }

    .panel__lines {
        margin-top: 28px;
    }

    .panel__copy {
        display: none;
    }

    .main {
        padding: 32px 20px 48px;
    }

    .card {
        padding: 36px 24px 32px;
    }

    .card__title {
        font-size: 20px;
    }

    .card__text {
        font-size: 12px;
    }
}

/* ========== Reduced Motion ========== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
