/* style.css - Unified Premium Portal (Restored & Optimized) */
:root {
    --neon-green: #2dd4bf; /* Emerald/Cyan from reference */
}

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background: #000;
    font-family: 'Poppins', 'Inter', sans-serif;
    color: #fff;
    overflow: hidden;
}

/* --- LAYOUT --- */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
    transition: background 1s ease;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

/* Hidden Input Logic */
.main-toggle-input, .tab-logic {
    display: none;
}

/* Unified Scene Glow Overlay */
.scene-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #000 100%);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.main-toggle-input:checked ~ .scene-glow {
    opacity: 1;
}

/* --- SIDES (Transparent Layers) --- */
.side-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    position: relative;
}

.side-login {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

/* --- 3D SWITCH UI --- */
.wall-switch {
    display: inline-block;
    background: linear-gradient(135deg, #222 0%, #333 100%);
    padding: 3px;
    border-radius: 12px;
    /* Ultra-Deep 3D Bevel & Wall Shadow */
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.8), 
        inset 0 1px 1px rgba(255,255,255,0.1),
        inset 0 -1px 2px rgba(0,0,0,0.5),
        -1px -1px 2px rgba(255,255,255,0.05);
    border: 1px solid #111;
    width: 100px;
    height: 170px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.wall-switch:hover { transform: scale(1.02); }

.rocker {
    width: 50px; height: 120px;
    background: linear-gradient(135deg, #333 0%, #555 50%, #222 100%);
    border-radius: 4px;
    position: relative;
    border: 1px solid #000;
    /* Deep Rocker Occlusion Shadow */
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex; justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: none; /* Removed tilt */
    transform-origin: center center;
}

/* Indicator Light */
.indicator {
    width: 20px; height: 8px;
    background: #bbb; border-radius: 2px;
    margin-top: 12px; transition: 0.3s;
}

/* --- REVEAL TRIGGER --- */
.main-toggle-input:checked ~ .side-switch .rocker {
    background: linear-gradient(135deg, #222 0%, #555 50%, #333 100%);
    transform: none; /* Removed tilt */
}
.main-toggle-input:checked ~ .side-switch .indicator {
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green), 0 0 25px var(--neon-green);
}

.main-toggle-input:checked ~ .side-login .form-reveal-wrap {
    opacity: 1; transform: translateX(0);
    pointer-events: auto;
}

/* --- AUTH CARD & TABS --- */
.form-reveal-wrap {
    opacity: 0; transform: translateX(30px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%; max-width: 420px;
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 70px 50px; /* Reduced vertical from 90 to 70 */
    border-radius: 40px;
    width: 420px; /* Scaled back slightly */
    box-shadow: 0 60px 120px rgba(0,0,0,0.7);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-toggle-input:checked ~ .side-login .glass-card {
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.2), 0 50px 100px rgba(0,0,0,0.8);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 70px; /* Slightly tighter gap */
    margin-bottom: 30px; /* Reduced from 40 */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.tab-btn {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    user-select: none;
    position: relative;
}

.tab-btn:hover { color: rgba(255, 255, 255, 0.6); }

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0; width: 0;
    height: 4px;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
    transition: width 0.3s ease;
}

/* Tab Active States */
#loginTabRadio:checked ~ .auth-tabs .login-label,
#registerTabRadio:checked ~ .auth-tabs .register-label {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

#loginTabRadio:checked ~ .auth-tabs .login-label::after,
#registerTabRadio:checked ~ .auth-tabs .register-label::after {
    width: 100%;
}

/* Box Visibility */
.auth-box {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

#loginTabRadio:checked ~ #loginBox,
#registerTabRadio:checked ~ #registerBox {
    display: block;
}

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

/* Title & Form Elements */
.form-title { font-size: 1.8rem; margin-bottom: 8px; text-align: center; color: #fff; }
.form-subtitle { color: rgba(255,255,255,0.4); font-size: 0.9rem; margin-bottom: 25px; text-align: center; } /* Reduced from 30 */

.field-group { margin-bottom: 16px; } /* Reduced from 20 */
.field-group label { display: block; font-size: 0.8rem; margin-bottom: 8px; color: rgba(255,255,255,0.6); }

.field-group input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 18px; border-radius: 12px; color: #fff; box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

.field-group input:focus {
    border-color: var(--neon-green);
    background: rgba(45, 212, 191, 0.05);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.15);
}

.submit-btn {
    width: 100%; background: var(--neon-green); color: #000; border: none; padding: 16px;
    border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s;
    margin-top: 10px; font-size: 1rem;
}
.submit-btn:hover { background: #14b8a6; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(20, 184, 166, 0.2); }

.helper-text { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 5px; }

.alert { padding: 12px; border-radius: 10px; margin-bottom: 15px; font-size: 0.8rem; text-align: center; }
.alert-success { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.2); }
.alert-error { background: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.2); }