/* ======================================
   CSS Variables & Design Tokens
   ====================================== */
:root {
    --dark: #0b0b0f;
    --dark-card: #111117;
    --gold: #FFD700;
    --gold-dim: rgba(255, 215, 0, 0.12);
    --gold-hover: rgba(255, 215, 0, 0.3);
    --text: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    --success: #4ade80;
    --success-dim: rgba(74, 222, 128, 0.1);
}

/* ======================================
   Reset & Base
   ====================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================================
   Ambient Background Effects
   ====================================== */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ======================================
   Container Layout
   ====================================== */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ======================================
   Left Panel
   ====================================== */
.panel-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 64px 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative grid overlay */
.panel-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.panel-left-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gold-dim);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 32px;
}

/* Heading */
.heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.heading-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.description {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 40px;
    max-width: 480px;
}

/* Feature Pills */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    transition: all 0.3s ease;
}

.feature-pill svg {
    color: var(--gold);
    opacity: 0.7;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

/* ======================================
   Vertical Separator
   ====================================== */
.separator {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.1), transparent);
    align-self: stretch;
}

/* ======================================
   Right Panel
   ====================================== */
.panel-right {
    flex: 0 0 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-card {
    width: 100%;
    max-width: 400px;
    animation: formReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

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

/* Shield Icon */
.shield-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border-radius: 18px;
    margin-bottom: 24px;
    color: var(--gold);
}

/* Form Title */
.form-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ======================================
   Turnstile Widget
   ====================================== */
.turnstile-wrapper {
    margin-bottom: 20px;
    min-height: 65px;
    display: flex;
    align-items: center;
}

/* Override Turnstile iframe to match theme */
.cf-turnstile iframe {
    border-radius: 14px !important;
}

/* ======================================
   Status Message
   ====================================== */
.status-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--success-dim);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--success);
    margin-bottom: 20px;
    animation: statusReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.status-message.hidden {
    display: none;
}

@keyframes statusReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================
   Access Button
   ====================================== */
.btn-access {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-access::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: none;
}

.btn-access:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(255, 215, 0, 0.3);
}

.btn-access:not(:disabled):hover::after {
    transform: translateX(110%);
    transition: transform 0.6s ease;
}

.btn-access:not(:disabled):active {
    transform: translateY(0);
}

/* Disabled State */
.btn-access:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* Enabled animation */
.btn-access.enabled {
    animation: buttonActivate 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes buttonActivate {
    0% { opacity: 0.35; transform: scale(0.98); filter: grayscale(0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 40px rgba(255, 215, 0, 0.3); }
    100% { opacity: 1; transform: scale(1); filter: grayscale(0); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15); }
}

/* Arrow animation on hover */
.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-access:not(:disabled):hover .btn-arrow {
    transform: translateX(4px);
}

/* ======================================
   Divider
   ====================================== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ======================================
   Responsive Design
   ====================================== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .panel-left {
        padding: 48px 40px 32px;
    }
    
    .separator {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.1), transparent);
    }
    
    .panel-right {
        flex: none;
        padding: 32px 40px 48px;
    }
    
    html, body {
        overflow: auto;
    }
}

@media (max-width: 640px) {
    .panel-left {
        padding: 40px 24px 24px;
    }
    
    .panel-right {
        padding: 24px 24px 40px;
    }
    
    .heading {
        font-size: 2.2rem;
    }
    
    .description {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    
    .features {
        gap: 8px;
    }
    
    .feature-pill {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}
