    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #080b10;
      --surface:  #0e1318;
      --surface2: #141920;
      --border:   rgba(255,255,255,0.07);
      --accent:   #4af0a4;
      --text:     #e8edf2;
      --muted:    #8a9ab0;
      --danger:   #f97066;
    }

    [data-theme="light"] {
      --bg:       #f4f6f8;
      --surface:  #ffffff;
      --surface2: #f0f2f5;
      --border:   rgba(0,0,0,0.08);
      --text:     #0f1923;
      --muted:    #8a95a3;
      --accent:   #1cc47e;
    }

    [data-theme="light"] .painel-visual { background: #e8f0fe; }
    [data-theme="light"] .mini-card { background: rgba(255,255,255,0.9); }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      overflow: hidden;
      transition: background 0.3s, color 0.3s;
    }

    .painel-visual {
      position: relative;
      background: #060910;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 2.5rem;
      overflow: hidden;
    }

    .painel-visual::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
      background-size: 32px 32px;
      pointer-events: none;
    }

    .painel-visual::after {
      content: '';
      position: absolute;
      top: 40%; left: 50%;
      transform: translate(-50%, -50%);
      width: 520px; height: 520px;
      background: radial-gradient(circle, rgba(74,240,164,0.10) 0%, transparent 65%);
      pointer-events: none;
    }

    .logo-visual {
      font-family: 'Syne', sans-serif;
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -0.04em;
      background: linear-gradient(135deg, var(--accent), #a8f5d5);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
      z-index: 1;
    }

    .cards-flutuantes {
      position: relative;
      z-index: 1;
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .stack { position: relative; width: 280px; height: 300px; }

    .mini-card {
      position: absolute;
      background: rgba(14,19,24,0.9);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.1rem 1.4rem;
      backdrop-filter: blur(12px);
      animation: float 6s ease-in-out infinite;
    }

    .mini-card:nth-child(1) { top: 0; left: 50%; --tx: -50%; width: 220px; animation-delay: 0s; }
    .mini-card:nth-child(2) { top: 110px; left: 0; width: 160px; animation-delay: 1.5s; }
    .mini-card:nth-child(3) { top: 120px; right: 0; width: 150px; animation-delay: 3s; }
    .mini-card:nth-child(4) { bottom: 0; left: 50%; --tx: -50%; width: 200px; animation-delay: 0.8s; }

    @keyframes float {
      0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
      50%       { transform: translateY(-10px) translateX(var(--tx, 0)); }
    }

    .mc-label { font-size: 0.68rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
    .mc-value { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
    .mc-value span { font-size: 0.75rem; font-family: 'DM Sans', sans-serif; font-weight: 500; margin-left: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 99px; }
    .mc-value .up   { color: var(--accent); background: rgba(74,240,164,0.1); }
    .mc-value .down { color: #f97066; background: rgba(249,112,102,0.1); }
    .mc-redes { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
    .mc-dot { width: 8px; height: 8px; border-radius: 50%; }
    .mc-dot.ig { background: #e1306c; }
    .mc-dot.tk { background: #69c9d0; }
    .mc-dot.yt { background: #ff4444; }

    .tagline { position: relative; z-index: 1; }
    .tagline p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; max-width: 320px; }
    .tagline strong { color: var(--accent); font-weight: 600; }

    .painel-login {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 3rem 2rem;
      background: var(--surface);
      border-left: 1px solid var(--border);
      animation: slideIn 0.5s ease both;
      /* Rola internamente quando o formulário passa da altura da tela.
         margin:auto no filho centraliza sem cortar o topo (ver .login-box). */
      max-height: 100vh;
      overflow-y: auto;
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(24px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    .login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 1.8rem; margin: auto 0; }
    .login-header { display: flex; flex-direction: column; gap: 0.4rem; }
    .login-header h2 { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.04em; }
    .login-header p { font-size: 0.88rem; color: var(--muted); }

    .tabs { display: flex; background: var(--surface2); border-radius: 10px; padding: 4px; gap: 4px; }
    .tab {
      flex: 1;
      padding: 0.55rem;
      border: none;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-family: 'Syne', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .tab.ativo { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

    .campo { display: flex; flex-direction: column; gap: 0.5rem; }
    .campo label { font-size: 0.82rem; font-weight: 500; color: #8a95a3; letter-spacing: 0.02em; }

    .input-wrapper { position: relative; display: flex; align-items: center; }
    .input-wrapper .icone { position: absolute; left: 1rem; color: var(--muted); font-size: 1rem; pointer-events: none; }
    .input-wrapper input {
      width: 100%;
      background: var(--surface2);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 0.8rem 1rem 0.8rem 2.8rem;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.92rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .input-wrapper input::placeholder { color: var(--muted); }
    .input-wrapper input:focus { border-color: rgba(74,240,164,0.45); box-shadow: 0 0 0 3px rgba(74,240,164,0.07); }

    .toggle-senha { position: absolute; right: 1rem; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 0; transition: color 0.2s; }
    .toggle-senha:hover { color: var(--text); }

    .btn-tipo {
      flex: 1; padding: 0.7rem 0.5rem;
      border-radius: 10px; border: 1.5px solid var(--border);
      background: var(--surface2); color: var(--muted);
      font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500;
      cursor: pointer; transition: all 0.2s; text-align: center;
    }
    .btn-tipo:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
    .btn-tipo.ativo {
      border-color: var(--accent); color: var(--accent);
      background: rgba(74,240,164,0.08);
    }

    .linha-extras { display: flex; align-items: center; justify-content: space-between; }
    .lembrar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); cursor: pointer; user-select: none; }
    .lembrar input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
    .link-esqueceu { font-size: 0.82rem; color: var(--accent); text-decoration: none; font-weight: 500; }

    .btn-entrar {
      width: 100%;
      padding: 0.9rem;
      background: var(--accent);
      color: #000;
      font-family: 'Syne', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
    .btn-entrar:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(74,240,164,0.35); }
    .btn-entrar:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    .spinner {
      width: 16px; height: 16px;
      border: 2px solid rgba(0,0,0,0.3);
      border-top-color: #000;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
      display: none;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .divisor { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.78rem; }
    .divisor::before, .divisor::after { content: ''; flex: 1; height: 1px; background: var(--border); }

    .btns-sociais { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
    .btn-social {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      padding: 0.7rem;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.83rem;
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-social:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }

    .login-footer { text-align: center; font-size: 0.83rem; color: var(--muted); }
    .login-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

    .msg-erro { font-size: 0.78rem; color: var(--danger); display: none; margin-top: -0.8rem; }

    /* ── Checkbox customizado de termos ── */
    .termos-item { display: flex; flex-direction: column; gap: 0.35rem; }

    .termos-check {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      background: var(--surface2);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      user-select: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .termos-check:hover { border-color: rgba(74,240,164,0.3); background: rgba(74,240,164,0.03); }
    .termos-check input[type="checkbox"] { display: none; }

    .termos-box {
      width: 20px; height: 20px;
      border: 2px solid var(--border);
      border-radius: 6px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      transition: border-color 0.2s, background 0.2s;
    }
    .termos-box svg { display: none; }

    .termos-check input:checked ~ .termos-box {
      background: var(--accent);
      border-color: var(--accent);
    }
    .termos-check input:checked ~ .termos-box svg { display: block; }

    .termos-check.checked { border-color: rgba(74,240,164,0.4); background: rgba(74,240,164,0.05); }

    .termos-texto { font-size: 0.82rem; color: var(--muted); line-height: 1.5; flex: 1; }
    .termos-texto a { color: var(--accent); text-decoration: none; font-weight: 600; }
    .termos-texto a:hover { text-decoration: underline; }

    .msg-erro-termos { font-size: 0.75rem; color: var(--danger); display: none; padding-left: 0.25rem; }
    .msg-erro.visivel { display: block; }

    .alerta {
      padding: 0.75rem 1rem;
      border-radius: 8px;
      font-size: 0.83rem;
      display: none;
      border: 1px solid;
    }
    .alerta.erro    { background: rgba(249,112,102,0.1); border-color: rgba(249,112,102,0.3); color: #f97066; }
    .alerta.sucesso { background: rgba(74,240,164,0.1);  border-color: rgba(74,240,164,0.3);  color: var(--accent); }
    .alerta.visivel { display: block; }

    @media (max-width: 768px) {
      body { grid-template-columns: 1fr; overflow: auto; }
      .painel-visual { display: none; }
      .painel-login { border-left: none; padding: 2rem 1.5rem; min-height: 100vh; max-height: none; overflow-y: visible; }
      .login-box { max-width: 100%; margin: auto 0; }
      .login-header h2 { font-size: 1.5rem; }
    }
