 :root {
      /* Pushed backgrounds to an extremely deep, near-black midnight */
      --bg-base: #07090f;
      --bg-subtle: #0f1423;
      --bg-surface: #141a2e;
      --bg-element: rgba(255, 255, 255, 0.05);
      
      --text-main: #ffffff;
      --text-muted: #94a3b8;
      --text-inverse: #000000;
      
      /* Balanced: Visible but not overpowering semi-transparent white borders */
      --border-light: rgba(255, 255, 255, 0.4); 
      --border-hover: rgba(255, 255, 255, 0.6);
      --input-bg: var(--bg-subtle);
      
      /* Midas Touch (Gold replacing all vibrant colors) */
      --brand-gold: #fbbf24;
      --brand-gold-light: #fde047;
      --brand-gold-dark: #d97706;
      
      /* UI Primary variables */
      --brand-primary: var(--brand-gold); 
      --brand-primary-hover: var(--brand-gold-light);
      --brand-gradient: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold-dark));
      
      /* Mergy Gradient Tokens adjusted for Abyss Theme */
      --mesh-color-1: rgba(124, 58, 237, 0.15); /* Deep Purple */
      --mesh-color-2: rgba(251, 191, 36, 0.20);  /* Gold */
      --mesh-color-3: rgba(88, 28, 135, 0.20); /* Dark Purple */
      --mesh-color-4: rgba(251, 191, 36, 0.10); /* Gold subtle */

      /* Semantic Colors */
      --success: #10b981;      
      --warning: #fbbf24;      
      --danger: #ef4444;
      
      /* Shadows & UI */
      --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
      --shadow-md: 0 10px 20px rgba(0,0,0,0.5);
      --shadow-glow: 0 10px 30px -10px rgba(251, 191, 36, 0.25);
      --shadow-float: 0 20px 40px rgba(0,0,0,0.8);
      
      --font-main: 'Plus Jakarta Sans', sans-serif;
      --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      
      --radius-sm: 9px;
      --radius-md: 13px;
      --radius-lg: 26px;
      --radius-full: 9999px;
    }

body {
      font-family: var(--font-main);
      background-color: var(--bg-base);
      color: var(--text-main);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      height: 100vh;
      overflow: hidden; /* Prevent scrolling globally */
      display: flex;
    }
    a { text-decoration: none; color: var(--brand-primary) !important; font-weight: 700; transition: var(--transition); }
    a:hover { color: var(--brand-primary-hover); text-decoration: underline !important; }
    button { border: none; background: none; font-family: inherit; cursor: pointer; color: inherit; outline: none; }

    /* ─── LAYOUT ─── */
    .auth-layout {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      width: 100%;
      height: 100vh;
    }

    /* ─── LEFT: VISUAL SIDE ─── */
    .auth-visual {
      position: relative;
      background-color: var(--bg-surface); /* Deep dark surface background */
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      /* Increased padding 10% and pushed content up slightly with bottom padding */
      padding: 53px 53px 12vh 53px; 
      overflow: hidden;
      color: #ffffff;
    }
    
    /* Dynamic Brand Mesh Background */
    .visual-bg {
      position: absolute; inset: 0; z-index: 0;
      background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
      animation: pulseGlow 10s ease-in-out infinite alternate;
    }
    @keyframes pulseGlow {
      0% { opacity: 0.8; transform: scale(1); }
      100% { opacity: 1; transform: scale(1.05); }
    }
    
    /* Subtle dot pattern */
    .visual-bg::after {
      content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
      background-size: 30px 30px;
    }

    .visual-content { position: relative; z-index: 1; }
    
    /* Scaled up 10% */
    .brand { display: flex; align-items: center; gap: 13px; font-weight: 900; font-size: 26px; color: white; letter-spacing: -0.05em; }
    .brand-icon { width: 40px; height: 40px; background: var(--brand-gradient); border-radius: 11px; display: grid; place-items: center; color: #000; box-shadow: var(--shadow-glow); border: 1px solid var(--border-light); }

    .visual-text { margin-top: auto; position: relative; z-index: 1; max-width: 572px; }
    .visual-text h1 { font-size: 3.3rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 22px; color: var(--text-main); }
    .text-gradient {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    
    /* Glassmorphism Testimonial - Scaled up 10% */
    .testimonial-card {
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-lg);
      padding: 35px;
      margin-top: 44px;
      box-shadow: var(--shadow-float);
      transform: translateY(0);
      transition: var(--transition);
    }
    .testimonial-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); border-color: var(--border-light); }
    
    .stars { color: var(--brand-gold); display: flex; gap: 5px; margin-bottom: 18px; }
    .stars i { width: 18px; height: 18px; fill: currentColor; }
    .quote { font-size: 1.15rem; font-weight: 500; line-height: 1.5; margin-bottom: 26px; color: rgba(255,255,255,0.9); }
    .author { display: flex; align-items: center; gap: 18px; }
    .author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-gradient); display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #000; border: 1px solid var(--border-light); }
    .author-info h4 { font-size: 15px; font-weight: 800; margin-bottom: 2px; color: var(--text-main); }
    .author-info p { font-size: 13px; color: var(--text-muted); font-weight: 500; }

    /* ─── RIGHT: FORM SIDE ─── */
    .auth-form-side {
      position: relative;
      display: flex;
      flex-direction: column;
      background: var(--bg-base);
      transition: background var(--transition);
      border-left: 1px solid var(--border-light);
      /* overflow: hidden;  */
    }
    
    /* The "Mergy" Background */
    .form-bg-mesh {
      position: absolute; 
      inset: -20%; 
      z-index: 0;
      background-image: 
        radial-gradient(circle at 80% 10%, var(--mesh-color-1) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, var(--mesh-color-2) 0%, transparent 55%),
        radial-gradient(circle at 40% 40%, var(--mesh-color-3) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, var(--mesh-color-4) 0%, transparent 50%);
      filter: blur(60px);
      animation: ambientDrift 15s ease-in-out infinite alternate;
      pointer-events: none;
    }
    
    @keyframes ambientDrift {
      0% { transform: scale(1) translate(0, 0); }
      33% { transform: scale(1.05) translate(3%, 4%); }
      66% { transform: scale(0.95) translate(-2%, -3%); }
      100% { transform: scale(1.02) translate(-4%, 2%); }
    }

    /* Header Toolbar - Scaled up 10% */
    .form-header {
      position: relative; z-index: 1;
      display: flex; justify-content: flex-end; align-items: center; gap: 18px;
      padding: 26px 53px;
      width: 100%;
    }
    .back-link { color: var(--text-muted); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
    .back-link:hover { color: var(--text-main); text-decoration: none; transform: translateX(-2px); }
    .icon-btn { 
      width: 44px; height: 44px; border-radius: 50%; 
      display: grid; place-items: center; color: var(--text-muted); 
      background: var(--bg-surface); border: 1px solid var(--border-light);
      transition: var(--transition); 
    }
    .icon-btn:hover { background: var(--bg-subtle); color: var(--brand-gold); border-color: var(--brand-gold); }

    /* Form Container - Scaled up 10% */
    .form-wrapper {
      position: relative; z-index: 1;
      flex: 1; display: flex; flex-direction: column; justify-content: center;
      max-width: 480px; width: 100%; margin: 0 auto; padding: 0 35px;
    }

    .auth-title { font-size: 2.5rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.03em; margin-bottom: 9px; }
    .auth-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 26px; font-weight: 500; }

    /* Social Buttons - Scaled up 10% */
    .social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 26px; }
    .btn-social {
      display: flex; align-items: center; justify-content: center; gap: 11px;
      padding: 13px; background: var(--bg-surface); border: 1px solid var(--border-light);
      border-radius: var(--radius-full); font-weight: 700; font-size: 15px; color: var(--text-main);
      transition: var(--transition); box-shadow: var(--shadow-sm);
    }
    .btn-social:hover { background: var(--bg-subtle); border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--brand-primary); }
    .btn-social img { width: 20px; height: 20px; }
    .btn-social.linkedin { color: #0a66c2; }
    .btn-social:hover.linkedin { color: #0a66c2; border-color: #0a66c2; }
    
    /* Divider - Scaled up 10% */
    .divider {
      display: flex; align-items: center; text-align: center; margin-bottom: 26px;
      color: var(--text-muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    }
    .divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-light); }
    .divider:not(:empty)::before { margin-right: 18px; }
    .divider:not(:empty)::after { margin-left: 18px; }

    /* Inputs - Scaled up 10% */
    .form-grid { display: grid; gap: 18px; } 
    
    /* Animation classes for switching forms */
    .fade-enter { animation: fadeInUp 0.4s var(--transition) forwards; }
    .fade-exit { display: none !important; }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    
    .input-group { display: flex; flex-direction: column; gap: 9px; }
    .input-group label { font-size: 14px; font-weight: 800; color: var(--text-main); }
    .input-field {
      padding: 13px 18px; background: var(--input-bg); border: 1px solid var(--border-light); 
      border-radius: var(--radius-md) !important; font-size: 15px; color: var(--text-main); font-family: inherit;
      transition: var(--transition); box-shadow: var(--shadow-sm); outline: none; font-weight: 500;
    }
    .input-field:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1); background: var(--bg-surface); }
    .input-field::placeholder { color: var(--text-muted); font-weight: 400; opacity: 0.6; }

    /* Helpers - Scaled up 10% */
    .form-helpers { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-top: 0; }
    .checkbox-group { display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text-main); font-weight: 600; }
    .checkbox-group input[type="checkbox"] {
      appearance: none; width: 18px; height: 18px; border: 2px solid var(--border-light);
      border-radius: 5px; background: var(--bg-base); cursor: pointer; position: relative;
      transition: var(--transition);
    }
    .checkbox-group input[type="checkbox"]:checked { background: var(--brand-primary); border-color: var(--brand-primary); }
    .checkbox-group input[type="checkbox"]:checked::after {
      content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 10px;
      border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg);
    }

    /* Primary Button - Scaled up 10% */
    .btn-submit {
      width: 100%; padding: 15px; margin-top: 9px; 
      background: var(--brand-gradient); color: #000; border: 1px solid var(--border-light);
      border-radius: var(--radius-full); font-size: 16px; font-weight: 800;
      transition: var(--transition); box-shadow: var(--shadow-glow);
      display: flex; justify-content: center; align-items: center; gap: 9px;
    }
    .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 40px -5px rgba(251, 191, 36, 0.4); }

    .auth-switch { text-align: center; margin-top: 26px; font-size: 15px; color: var(--text-muted); font-weight: 600; } 
    .auth-switch button, .auth-switch a { color: var(--brand-primary); font-weight: 800; transition: var(--transition); margin-left: 5px; }
    .auth-switch button:hover, .auth-switch a:hover { color: var(--brand-primary-hover); text-decoration: underline; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) {
      .auth-layout { grid-template-columns: 1fr; }
      .auth-visual { display: none; }
      body { overflow: auto; } /* Re-enable scroll for mobile/tablet if needed */
    }
    @media (max-width: 640px) {
      .name-fields { grid-template-columns: 1fr; }
      .social-auth { grid-template-columns: 1fr; }
      .form-header { padding: 26px; }
    }