/* Design Tokens for Login Page */
:root {
    --bg-left: #0e0f12;
    --bg-right: #050608;
    --brand-green: #00ff88;
    --brand-green-glow: rgba(0, 255, 136, 0.2);
    --border-color: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --font-sans: 'Outfit', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-right);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

/* CONTAINER */
.vb-login-container {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   LEFT PANEL - LOGIN CONTROLS
   ========================================================================== */
.vb-login-left {
    width: 440px;
    background-color: var(--bg-left);
    border-right: 1px solid var(--border-color);
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Back Button */
.vb-login-left-header {
    margin-bottom: 20px;
}

.vb-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vb-back-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.vb-back-btn i {
    width: 18px;
    height: 18px;
}

/* Main Box */
.vb-login-box {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vb-logo-icon-card {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-color: #141519;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-logo-icon-card svg,
.vb-logo-icon-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vb-login-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-align: center;
}

.vb-login-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
}

/* Email input styling */
.vb-email-form {
    width: 100%;
}

.vb-email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vb-email-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 14px 50px 14px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.vb-email-input:focus {
    border-color: var(--brand-green);
    background: rgba(0, 255, 136, 0.01);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.08);
}

.vb-email-submit-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-green);
    border: none;
    color: #020617;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vb-email-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--brand-green-glow);
}

.vb-email-submit-btn i {
    width: 16px;
    height: 16px;
}

/* Divider styling */
.vb-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    width: 100%;
}

.vb-divider-line {
    flex-grow: 1;
    height: 1px;
    background: radial-gradient(circle, var(--border-color) 0%, transparent 100%);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.vb-divider-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Social buttons list */
.vb-social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.vb-social-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vb-social-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.vb-social-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vb-google-svg {
    width: 18px;
    height: 18px;
}

.vb-social-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.vb-social-icon.text-green {
    color: var(--brand-green);
}

.vb-social-icon.text-yellow {
    color: #fbbf24;
}

.vb-social-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.vb-arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.vb-social-btn:hover .vb-arrow-icon {
    color: var(--brand-green);
    transform: translateX(3px);
}

.vb-auth-toggle-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
}

.vb-toggle-auth-mode {
    color: var(--brand-green);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.vb-toggle-auth-mode:hover {
    color: #ffffff;
}

/* Footer copyright styling */
.vb-login-footer {
    font-size: 10.5px;
    color: var(--text-muted);
    text-align: center;
    padding-top: 20px;
}

/* ==========================================================================
   RIGHT PANEL - VISUAL DISPLAY
   ========================================================================== */
.vb-login-right {
    flex-grow: 1;
    background-color: var(--bg-right);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Ambient glow lights */
.vb-glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 1;
    opacity: 0.15;
}

.vb-glow-circle.circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--brand-green);
    top: -100px;
    right: -100px;
}

.vb-glow-circle.circle-2 {
    width: 500px;
    height: 500px;
    background-color: #10B981;
    bottom: -150px;
    left: 20%;
}

.vb-visual-content {
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 2;
    position: relative;
}

/* Mockup preview of Dashboard */
.vb-mockup-wrapper {
    width: 100%;
    transform: perspective(1000px) rotateX(10deg) rotateY(-8deg) rotateZ(3deg) scale(0.9);
    filter: opacity(0.65) blur(0.5px);
    transition: all 0.5s ease;
}

.vb-mockup-wrapper:hover {
    filter: opacity(0.85);
    transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) rotateZ(1deg) scale(0.92);
}

.vb-dashboard-mockup {
    width: 100%;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 20px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    position: relative;
}

.vb-mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.vb-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.vb-mockup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vb-mockup-row {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 12px;
}

.vb-mockup-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
}

.vb-mockup-card.tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vb-mockup-avatar-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-mockup-inner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
}

.vb-mockup-progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.vb-mockup-progress-fill {
    height: 100%;
    background: var(--brand-green);
    border-radius: 2px;
}

.vb-mockup-card.wide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.vb-mockup-badge {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.vb-mockup-line-sm { font-size: 10px; color: var(--text-secondary); }
.vb-mockup-line-xs { font-size: 9px; color: var(--text-muted); }
.vb-mockup-line-md { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.vb-mockup-large-text { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #ffffff; }

.vb-mockup-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.text-center { text-align: center; }
.text-green { color: var(--brand-green) !important; }

/* Giant Extruded Floating Logo */
.vb-floating-logo-container {
    position: absolute;
    bottom: -60px;
    left: 45%;
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 10;
}

.vb-giant-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: vb-logo-float 5s ease-in-out infinite;
}

/* Tagline layout */
.vb-visual-tagline {
    text-align: center;
    max-width: 500px;
}

.vb-tagline-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 16px auto;
    display: block;
    object-fit: contain;
}

.vb-tagline-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 12px;
}

.vb-tagline-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ==========================================================================
   CSS KEYFRAMES ANIMATIONS
   ========================================================================== */
@keyframes vb-logo-float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 15px 15px rgba(0,0,0,0.5));
    }
    50% {
        transform: translateY(-16px) scale(1.03) rotate(3deg);
        filter: drop-shadow(0 25px 25px rgba(0,0,0,0.35));
    }
}

/* Page fade out animation class used by JS */
.vb-page-fade-out {
    animation: vb-page-fade 0.5s ease forwards;
}

@keyframes vb-page-fade {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .vb-login-container {
        flex-direction: column-reverse;
    }
    
    .vb-login-left {
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding: 40px 32px;
    }
    
    .vb-login-right {
        padding: 60px 32px;
        min-height: 480px;
    }
    
    .vb-floating-logo-container {
        top: calc(50% - 150px);
    }
}

@media (max-width: 768px) {
    .vb-login-right {
        display: none;
    }
    
    .vb-login-left {
        flex-grow: 1;
        border-top: none;
    }
}

@media (max-width: 576px) {
    .vb-login-left {
        padding: 32px 20px;
    }
    
    .vb-login-right {
        padding: 40px 20px;
        min-height: 380px;
    }
    
    .vb-tagline-title {
        font-size: 26px;
    }
    
    .vb-floating-logo-container {
        width: 150px;
        height: 150px;
        left: calc(50% - 75px);
        top: calc(50% - 130px);
    }
}
