
    :root {
      /* Gold palette */
      --gold: #D4AF37;
      --gold-light: #F4E4BC;
      --gold-dark: #B8860B;
      --gold-glow: rgba(212, 175, 55, 0.4);
      --gold-soft: rgba(212, 175, 55, 0.12);

      /* Onyx surfaces */
      --onyx-bg: #09090B;
      --onyx-bg-2: #0E0E11;
      --onyx-card: rgba(24, 24, 27, 0.6);
      --onyx-border: rgba(255, 255, 255, 0.08);
      --onyx-border-strong: rgba(255, 255, 255, 0.14);
      --onyx-input: rgba(255, 255, 255, 0.03);

      /* Text */
      --text-primary: #FFFFFF;
      --text-secondary: rgba(255, 255, 255, 0.7);
      --text-muted: rgba(255, 255, 255, 0.5);

      /* Feedback */
      --error: #EF4444;
      --success: #10B981;

      /* Effects */
      --blur: blur(20px);
      --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.3);
      --shadow-card: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

      /* Radius */
      --r-input: 14px;
      --r-card: 24px;
      --r-logo: 16px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; }

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

    /* Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #09090B; }
    ::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

    /* Background ambient glow */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(800px 600px at 15% 20%, rgba(212,175,55,0.08), transparent 60%),
        radial-gradient(700px 500px at 90% 90%, rgba(212,175,55,0.05), transparent 60%),
        linear-gradient(180deg, #09090B 0%, #0B0B0E 100%);
      z-index: -1;
    }

    h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
    .gold {
      background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
    i, svg { display: inline-flex; align-items: center; justify-content: center; }
    .btn i, .btn svg, .icon-btn i, .icon-btn svg { width: 20px; height: 20px; margin: 0; padding: 0; }

    /* ═══════════════════════════════════════════════════════════════
       LAYOUT - SPLIT SCREEN
       ═══════════════════════════════════════════════════════════════ */
    .auth-shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr;
    }

    @media (min-width: 1024px) {
      .auth-shell { grid-template-columns: 45% 55%; }
    }

    /* ═══════════════════════════════════════════════════════════════
       PAINEL ESQUERDA - BRAND
       ═══════════════════════════════════════════════════════════════ */
    .brand-panel {
      display: none;
      position: relative;
      padding: 60px 48px;
      background: var(--onyx-card);
      backdrop-filter: var(--blur);
      -webkit-backdrop-filter: var(--blur);
      border-right: 1px solid var(--onyx-border);
      overflow: hidden;
    }
    .brand-panel::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent 60%);
      pointer-events: none;
    }
    .brand-panel::after {
      content: '';
      position: absolute;
      max-width: 500px; width: 100%; min-height: 500px;
      bottom: -200px; left: -150px;
      background: radial-gradient(circle, rgba(212,175,55,0.08), transparent 70%);
      pointer-events: none;
    }
    @media (min-width: 1024px) {
      .brand-panel { display: flex; flex-direction: column; justify-content: space-between; }
    }

    .brand-inner { position: relative; z-index: 1; max-width: 460px; }

    .brand-logo {
      width: 80px; height: 80px;
      border-radius: var(--r-logo);
      background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
      display: grid; place-items: center;
      box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3);
      animation: pulseGold 2s ease-in-out infinite;
      margin-bottom: 32px;
    }
    .brand-logo svg { width: 40px; height: 40px; color: #1a1a1a; stroke-width: 2.5; }

    @keyframes pulseGold {
      0%, 100% { box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3); transform: scale(1); }
      50% { box-shadow: 0 6px 36px rgba(212,175,55,0.55), inset 0 1px 0 rgba(255,255,255,0.4); transform: scale(1.03); }
    }

    .brand-title { font-size: 36px; line-height: 1.1; margin-bottom: 12px; }
    .brand-sub { font-size: 17px; color: var(--text-secondary); margin-bottom: 40px; }

    .stats-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
      margin-bottom: 36px;
    }
    .stat-card {
      padding: 22px 20px;
      background: rgba(255,255,255,0.025);
      border: 1px solid var(--onyx-border);
      border-radius: 16px;
      transition: var(--transition);
    }
    .stat-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
    .stat-num {
      font-family: var(--font-display);
      font-size: 30px; font-weight: 700;
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      -webkit-background-clip: text; background-clip: text; color: transparent;
      margin-bottom: 4px;
    }
    .stat-label { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

    .divider-soft { height: 1px; background: var(--onyx-border); margin: 28px 0; }

    .feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
    .feature-list li {
      display: flex; align-items: center; gap: 12px;
      font-size: 15px; color: var(--text-secondary);
    }
    .feature-list li svg {
      width: 20px; height: 20px;
      color: var(--gold);
      flex-shrink: 0;
      padding: 3px;
      background: var(--gold-soft);
      border-radius: 6px;
    }

    .brand-footer {
      position: relative; z-index: 1;
      font-size: 13px; color: var(--text-muted);
    }

    /* ═══════════════════════════════════════════════════════════════
       PAINEL DIREITA - FORMULÁRIO
       ═══════════════════════════════════════════════════════════════ */
    .form-panel {
      display: flex; flex-direction: column;
      padding: 24px;
      min-height: 100vh;
    }
    @media (min-width: 768px) { .form-panel { padding: 40px; } }
    @media (min-width: 1024px) { .form-panel { padding: 60px 48px; } }

    .mobile-header {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 24px;
    }
    .mobile-header .mh-logo {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
      display: grid; place-items: center;
      box-shadow: 0 2px 12px rgba(212,175,55,0.3);
    }
    .mobile-header .mh-logo svg { width: 22px; height: 22px; color: #1a1a1a; stroke-width: 2.5; }
    .mobile-header .mh-name {
      font-family: var(--font-display);
      font-weight: 600; font-size: 18px;
    }
    @media (min-width: 1024px) { .mobile-header { display: none; } }

    .back-link {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 14px; color: var(--text-muted);
      transition: var(--transition);
      width: fit-content;
      margin-bottom: 24px;
    }
    .back-link:hover { color: var(--gold); transform: translateX(-2px); }
    .back-link svg { width: 16px; height: 16px; }

    .form-wrap {
      flex: 1;
      display: flex; align-items: center; justify-content: center;
    }

    .login-card {
      width: 100%;
      max-width: 440px;
      background: var(--onyx-card);
      backdrop-filter: var(--blur);
      -webkit-backdrop-filter: var(--blur);
      border: 1px solid var(--onyx-border);
      border-radius: var(--r-card);
      padding: 40px 36px;
      box-shadow: var(--shadow-card);
      position: relative;
    }
    .login-card::before {
      content: '';
      position: absolute; inset: 0;
      border-radius: var(--r-card);
      padding: 1px;
      background: linear-gradient(135deg, rgba(212,175,55,0.25), transparent 50%, rgba(212,175,55,0.15));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    @media (max-width: 767px) {
      .login-card {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 8px 0;
      }
      .login-card::before { display: none; }
    }

    .card-title { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
    .card-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.5; }

    /* Botão Google */
    .btn-google {
      width: 100%;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 13px 18px;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--onyx-border-strong);
      border-radius: var(--r-input);
      color: var(--text-primary);
      font-weight: 500; font-size: 14px;
      transition: var(--transition);
    }
    .btn-google:hover { background: rgba(255,255,255,0.08); border-color: var(--gold-soft); transform: translateY(-1px); }
    .btn-google svg { width: 18px; height: 18px; }

    /* Divider */
    .divider {
      display: flex; align-items: center; gap: 12px;
      margin: 22px 0;
      color: var(--text-muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .divider::before, .divider::after {
      content: ''; flex: 1; height: 1px; background: var(--onyx-border);
    }

    /* Form */
    .field { margin-bottom: 16px; }
    .field-label {
      display: block;
      font-size: 13px; font-weight: 500;
      margin-bottom: 8px;
      color: var(--text-secondary);
    }
    .input-wrap {
      position: relative;
      display: flex; align-items: center;
    }
    .input-wrap > svg.input-icon {
      position: absolute; left: 14px;
      width: 18px; height: 18px;
      color: var(--text-muted);
      pointer-events: none;
      transition: color var(--transition);
    }
    .field input {
      width: 100%;
      padding: 14px 14px 14px 44px;
      background: var(--onyx-input);
      border: 1px solid var(--onyx-border);
      border-radius: var(--r-input);
      color: var(--text-primary);
      font-size: 15px;
      font-family: inherit;
      transition: var(--transition);
      outline: none;
    }
    .field input::placeholder { color: var(--text-muted); }
    .field input:focus {
      border-color: var(--gold);
      background: rgba(255,255,255,0.05);
      box-shadow: 0 0 0 4px var(--gold-soft);
    }
    .field input:focus + .input-icon,
    .input-wrap:focus-within > svg.input-icon { color: var(--gold); }

    .toggle-pass {
      position: absolute; right: 12px;
      width: 36px; height: 36px;
      display: grid; place-items: center;
      border-radius: 8px;
      color: var(--text-muted);
      transition: var(--transition);
    }
    .toggle-pass:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
    .toggle-pass svg { width: 18px; height: 18px; }

    .field-error {
      display: none;
      margin-top: 6px;
      font-size: 12px;
      color: var(--error);
    }
    .field.invalid .field-error { display: block; }
    .field.invalid input { border-color: var(--error); }

    /* Row remember/forgot */
    .row-options {
      display: flex; align-items: center; justify-content: space-between;
      margin: 6px 0 22px;
      font-size: 13px;
    }
    .check {
      display: inline-flex; align-items: center; gap: 8px;
      color: var(--text-secondary);
      cursor: pointer;
      user-select: none;
    }
    .check input { position: absolute; opacity: 0; pointer-events: none; }
    .check .box {
      width: 18px; height: 18px;
      border-radius: 5px;
      border: 1.5px solid var(--onyx-border-strong);
      display: grid; place-items: center;
      transition: var(--transition);
      background: var(--onyx-input);
    }
    .check .box svg { width: 12px; height: 12px; color: #1a1a1a; opacity: 0; transition: opacity 0.2s; }
    .check input:checked + .box {
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      border-color: var(--gold);
    }
    .check input:checked + .box svg { opacity: 1; }
    .check input:focus-visible + .box { box-shadow: 0 0 0 3px var(--gold-soft); }

    .link-gold {
      color: var(--gold);
      font-weight: 500;
      transition: var(--transition);
    }
    .link-gold:hover { color: var(--gold-light); }

    /* Botão principal */
    .btn-gold {
      position: relative;
      width: 100%;
      padding: 15px 20px;
      border-radius: var(--r-input);
      background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
      color: #1a1a1a;
      font-weight: 700;
      font-size: 15px;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.35);
      transition: var(--transition);
      overflow: hidden;
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .btn-gold::after {
      content: '';
      position: absolute; top: 0; left: -100%;
      width: 60%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
      transition: left 0.6s ease;
    }
    .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.4); }
    .btn-gold:hover::after { left: 110%; }
    .btn-gold:active { transform: translateY(0); }
    .btn-gold:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
    .btn-gold .spinner {
      width: 18px; height: 18px;
      border: 2.5px solid rgba(26,26,26,0.25);
      border-top-color: #1a1a1a;
      border-radius: 6px;
      animation: spin 0.7s linear infinite;
      display: none;
    }
    .btn-gold.loading .spinner { display: inline-block; }
    .btn-gold.loading .btn-text { opacity: 0.6; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Divider final + signup */
    .signup-line {
      margin-top: 26px;
      padding-top: 22px;
      border-top: 1px solid var(--onyx-border);
      text-align: center;
      font-size: 14px;
      color: var(--text-secondary);
    }
    .signup-line a { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
    .signup-line a svg { width: 14px; height: 14px; transition: var(--transition); }
    .signup-line a:hover svg { transform: translateX(3px); }

    /* Toast */
    .toast-wrap {
      position: fixed; top: 20px; right: 20px;
      z-index: 9999;
      display: flex; flex-direction: column; gap: 10px;
      max-width: calc(100vw - 40px);
    }
    .toast {
      min-width: 280px;
      max-width: 360px;
      padding: 14px 16px;
      background: rgba(20,20,22,0.95);
      backdrop-filter: var(--blur);
      border: 1px solid var(--onyx-border-strong);
      border-radius: 12px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.5);
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 14px;
      color: var(--text-primary);
      animation: slideIn 0.3s ease;
    }
    .toast.error { border-left: 3px solid var(--error); }
    .toast.success { border-left: 3px solid var(--success); }
    .toast.info { border-left: 3px solid var(--gold); }
    .toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
    .toast.error svg { color: var(--error); }
    .toast.success svg { color: var(--success); }
    .toast.info svg { color: var(--gold); }
    .toast.fade-out { animation: slideOut 0.3s ease forwards; }
    @keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    @keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }

    /* Shake on error */
    .shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
    @keyframes shake {
      10%, 90% { transform: translateX(-2px); }
      20%, 80% { transform: translateX(4px); }
      30%, 50%, 70% { transform: translateX(-6px); }
      40%, 60% { transform: translateX(6px); }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }

    /* Focus visible */
    a:focus-visible, button:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
      border-radius: 6px;
    }
  