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

    /* ══ TOKENS POR TEMA ══ */
    [data-theme="dark"] {
      --bg:        #0A0A0A;
      --bg2:       #111111;
      --bg3:       #181818;
      --bg4:       #222222;
      --text:      #FFFFFF;
      --text2:     rgba(255,255,255,0.55);
      --text3:     rgba(255,255,255,0.25);
      --border:    rgba(255,255,255,0.07);
      --input-bg:  rgba(255,255,255,0.05);
      --input-brd: rgba(255,255,255,0.09);
      --shadow:    rgba(0,0,0,0.6);
      --grid:      rgba(255,255,255,0.03);
      --scan-op:   0.45;
    }
    [data-theme="light"] {
      --bg:        #F5F5F0;
      --bg2:       #FFFFFF;
      --bg3:       #EBEBEB;
      --bg4:       #E0E0E0;
      --text:      #111111;
      --text2:     rgba(0,0,0,0.50);
      --text3:     rgba(0,0,0,0.25);
      --border:    rgba(0,0,0,0.08);
      --input-bg:  rgba(0,0,0,0.04);
      --input-brd: rgba(0,0,0,0.10);
      --shadow:    rgba(0,0,0,0.12);
      --grid:      rgba(0,0,0,0.04);
      --scan-op:   0.2;
    }

    :root {
      --orange:      #F97316;
      --orange-dark: #C2601A;
      --orange-glow: rgba(249,115,22,0.18);
    }

    /* Transición suave al cambiar tema */
    html { transition: background 0.5s ease; }
    body, .bg, .right, .left, .form-card, .input-row input,
    .kpi-strip, .kpi, .bottom-strip, .logo-info,
    .check-box, .sec-note span, .form-head p,
    .hero-desc, .hero-tag, .top-badge, .metric-lbl,
    .logo-sub, .dot, .step-dots
    { transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease; }

    html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg); overflow: hidden; }

    /* ─── FONDO ─── */
    .bg {
      position: fixed; inset: 0; z-index: 0;
      background: var(--bg);
      overflow: hidden;
    }

    .bg-light-1 {
      position: absolute;
      width: 800px; height: 450px;
      background: radial-gradient(ellipse at center, var(--orange-glow) 0%, transparent 70%);
      top: -180px; left: 50%; transform: translateX(-50%);
      animation: lightSway 11s ease-in-out infinite alternate;
      transition: opacity 0.5s;
    }
    .bg-light-2 {
      position: absolute;
      width: 350px; height: 350px;
      background: radial-gradient(ellipse, rgba(249,115,22,0.07) 0%, transparent 70%);
      bottom: -80px; right: 8%;
      animation: lightSway 14s ease-in-out infinite alternate-reverse;
    }
    @keyframes lightSway { to { transform: translateX(calc(-50% + 35px)) scale(1.08); } }

    .bg-grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
      background-size: 72px 72px;
    }

    /* Línea scan */
    .scan-line {
      position: absolute; left: 0; right: 0; height: 1.5px;
      background: linear-gradient(90deg, transparent 0%, var(--orange) 30%, var(--orange) 70%, transparent 100%);
      opacity: 0; top: 0;
      animation: scanDown 7s ease-in-out infinite;
    }
    @keyframes scanDown {
      0%   { top: 0%;   opacity: 0; }
      5%   { opacity: var(--scan-op); }
      92%  { opacity: var(--scan-op); }
      100% { top: 100%; opacity: 0; }
    }

    /* Partículas */
    .particles { position: absolute; inset: 0; pointer-events: none; }
    .p { position: absolute; border-radius: 50%; animation: pFloat linear infinite; }
    @keyframes pFloat {
      0%   { transform: translateY(100vh) scale(0); opacity: 0; }
      8%   { opacity: 1; }
      90%  { opacity: 0.5; }
      100% { transform: translateY(-10vh) scale(1); opacity: 0; }
    }

    /* Barras de estantería */
    .shelf { position: absolute; top: 0; bottom: 0; width: 50px; display: flex; flex-direction: column; justify-content: space-around; padding: 50px 0; opacity: 0.05; }
    .shelf-l { left: 0; }
    .shelf-r { right: 0; }
    .shelf-bar { height: 3px; background: var(--orange); border-radius: 2px; }

    /* ─── LAYOUT ─── */
    .page { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 480px; height: 100vh; }

    /* ─── TOGGLE DÍA/NOCHE ─── */
    .theme-toggle {
      position: fixed; top: 1.5rem; right: 1.5rem; z-index: 100;
      display: flex; align-items: center; gap: 10px;
    }
    .toggle-track {
      width: 56px; height: 28px;
      background: var(--bg3);
      border: 0.5px solid var(--border);
      border-radius: 999px;
      cursor: pointer;
      position: relative;
      transition: background 0.4s;
    }
    .toggle-track:hover { border-color: var(--orange); }
    .toggle-thumb {
      position: absolute;
      top: 3px; left: 3px;
      width: 22px; height: 22px;
      border-radius: 50%;
      background: var(--orange);
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
      box-shadow: 0 2px 8px rgba(249,115,22,0.5);
    }
    [data-theme="light"] .toggle-thumb { transform: translateX(28px); }
    .toggle-thumb svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .toggle-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); }

    /* Sol (light) y luna (dark) */
    .ico-moon, .ico-sun { position: absolute; transition: opacity 0.3s; }
    .ico-moon { opacity: 1; }
    .ico-sun  { opacity: 0; }
    [data-theme="light"] .ico-moon { opacity: 0; }
    [data-theme="light"] .ico-sun  { opacity: 1; }

    /* ─── IZQUIERDA ─── */
    .left {
      display: flex; flex-direction: column; justify-content: space-between;
      padding: 3rem 4rem 3rem 4.5rem;
      animation: fadeUp 1s ease both;
    }

    .top-badge {
      display: inline-flex; align-items: center; gap: 10px;
      background: rgba(249,115,22,0.1);
      border: 0.5px solid rgba(249,115,22,0.3);
      border-radius: 999px; padding: 6px 16px;
      font-size: 11px; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--orange);
      width: fit-content;
    }
    .top-badge::before {
      content: ''; width: 7px; height: 7px;
      border-radius: 50%; background: var(--orange);
      animation: dot-pulse 2s infinite;
    }
    @keyframes dot-pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.6);opacity:0.5;} }

    .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }

    .hero-tag {
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--text2); margin-bottom: 1.2rem;
      display: flex; align-items: center; gap: 12px;
    }
    .hero-tag::before { content:''; width:28px; height:1px; background: var(--orange); }

    .hero-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(4rem, 7vw, 6.2rem);
      font-weight: 800; line-height: 0.92;
      color: var(--text); margin-bottom: 1.6rem;
    }
    .hero-title .accent { color: var(--orange); }
    .hero-title .stroke {
      -webkit-text-stroke: 1.5px var(--orange);
      color: transparent;
    }

    .hero-desc {
      font-size: 13px; font-weight: 300; color: var(--text2);
      line-height: 1.8; max-width: 340px; margin-bottom: 2.5rem;
    }

    .kpi-strip {
      display: flex; gap: 0;
      border: 0.5px solid var(--border);
      border-radius: 14px; overflow: hidden; width: fit-content;
      background: var(--bg2);
    }
    .kpi { padding: 1.1rem 1.8rem; border-right: 0.5px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
    .kpi:last-child { border-right: none; }
    .kpi-val { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); }
    .kpi-val span { color: var(--orange); }
    .kpi-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); }

    .bottom-strip { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); }
    .bs-ico { width: 34px; height: 34px; background: var(--bg3); border: 0.5px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .bs-ico svg { width: 15px; height: 15px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .bottom-strip p { font-size: 12px; color: var(--text2); font-weight: 300; }
    .bottom-strip strong { color: var(--text); font-weight: 500; }

    /* ─── DERECHA ─── */
    .right {
      position: relative;
      display: flex; align-items: center; justify-content: center;
      padding: 2rem;
      background: var(--bg2);
      border-left: 0.5px solid var(--border);
      animation: slideIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
      box-shadow: -20px 0 60px var(--shadow);
    }
    .right::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, var(--orange), transparent);
      opacity: 0.7;
    }

    @keyframes slideIn { from { transform: translateX(50px); opacity:0; } to { transform: translateX(0); opacity:1; } }
    @keyframes fadeUp  { from { transform: translateY(26px); opacity:0; } to { transform: translateY(0); opacity:1; } }

    /* ─── FORM CARD ─── */
    .form-card { width: 100%; max-width: 380px; }

    .logo { display: flex; align-items: center; gap: 13px; margin-bottom: 2.2rem; animation: fadeUp 0.8s 0.1s ease both; }
    .logo-box {
      width: 46px; height: 46px; background: var(--orange);
      border-radius: 11px; display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
    }
    .logo-box::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.2),transparent); }
    .logo-box svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
    .logo-name { font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
    .logo-sub { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); }

    /* Step dots */
    .step-dots { display: flex; gap: 6px; margin-bottom: 1.8rem; animation: fadeUp 0.8s 0.22s ease both; }
    .dot { height: 3px; border-radius: 999px; background: var(--border); transition: all 0.4s ease; }
    .dot.active { background: var(--orange); width: 28px; }
    .dot.done   { background: rgba(249,115,22,0.4); width: 12px; }
    .dot:not(.active):not(.done) { width: 12px; }

    .form-head { margin-bottom: 1.8rem; animation: fadeUp 0.8s 0.28s ease both; }
    .form-head h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: 0.02em; }
    .form-head p { font-size: 13px; color: var(--text2); font-weight: 300; }

    /* Campos */
    .fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
    .field { display: flex; flex-direction: column; gap: 7px; animation: fadeUp 0.8s ease both; }
    .field:nth-child(1) { animation-delay: 0.36s; }
    .field:nth-child(2) { animation-delay: 0.46s; }
    .field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text2); transition: color 0.2s; }
    .field:focus-within label { color: var(--orange); }

    .input-row { position: relative; display: flex; align-items: center; }
    .input-row .pfx { position: absolute; left: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
    .input-row .pfx svg { width: 15px; height: 15px; stroke: var(--text3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
    .field:focus-within .pfx svg { stroke: var(--orange); }

    .input-row input {
      width: 100%; height: 46px;
      background: var(--input-bg);
      border: 0.5px solid var(--input-brd);
      border-radius: 10px;
      padding: 0 44px 0 44px;
      font-family: 'Inter', sans-serif; font-size: 14px;
      color: var(--text); outline: none;
      transition: all 0.25s;
    }
    .input-row input::placeholder { color: var(--text3); }
    .input-row input:focus {
      border-color: var(--orange);
      background: rgba(249,115,22,0.06);
      box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
    }

    .tick { position: absolute; right: 13px; opacity: 0; transform: scale(0.4); transition: all 0.25s; pointer-events: none; }
    .tick svg { width: 14px; height: 14px; stroke: #4ade80; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .field.ok .tick { opacity: 1; transform: scale(1); }

    .eye { position: absolute; right: 11px; background: none; border: none; cursor: pointer; padding: 4px; display: flex; }
    .eye svg { width: 15px; height: 15px; stroke: var(--text3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
    .eye:hover svg { stroke: var(--orange); }

    .strength-bar { height: 3px; border-radius: 999px; background: var(--bg4); overflow: hidden; margin-top: 3px; }
    .strength-fill { height: 100%; border-radius: 999px; width: 0%; transition: width 0.4s ease, background 0.4s ease; }

    .err { font-size: 12px; color: #f87171; display: none; padding-left: 2px; animation: shake 0.4s ease; }
    @keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

    /* Check row */
    .check-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.3rem; animation: fadeUp 0.8s 0.52s ease both; }
    .check-label { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; color: var(--text2); }
    .check-label input { display: none; }
    .check-box { width: 16px; height: 16px; border: 0.5px solid var(--input-brd); border-radius: 4px; background: var(--input-bg); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
    .check-label input:checked ~ .check-box { background: var(--orange); border-color: var(--orange); }
    .check-box svg { width: 9px; height: 9px; stroke: #fff; fill: none; stroke-width: 3; opacity: 0; transition: opacity 0.15s; }
    .check-label input:checked ~ .check-box svg { opacity: 1; }
    .forgot { font-size: 12px; color: var(--orange); text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
    .forgot:hover { opacity: 1; }

    /* Botón */
    .btn-main {
      width: 100%; height: 48px; border: none; border-radius: 10px;
      background: var(--orange); color: #fff;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 17px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
      cursor: pointer; position: relative; overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
      animation: fadeUp 0.8s 0.58s ease both;
    }
    .btn-main:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(249,115,22,0.3); }
    .btn-main:active { transform: scale(0.98); }
    .btn-main.loading { pointer-events: none; opacity: 0.75; }
    .btn-main::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent); transform:translateX(-100%); transition:transform 0.55s ease; }
    .btn-main:hover::after { transform: translateX(100%); }
    .btn-spin { display:none; width:16px; height:16px; border:2px solid rgba(255,255,255,0.3); border-top-color:#fff; border-radius:50%; animation:spin 0.7s linear infinite; position:absolute; right:16px; top:50%; transform:translateY(-50%); }
    .btn-main.loading .btn-spin { display: block; }
    @keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

    .sec-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 1.1rem; animation: fadeUp 0.8s 0.64s ease both; }
    .sec-note svg { width: 12px; height: 12px; stroke: var(--text2); fill: none; stroke-width: 2; flex-shrink: 0; }
    .sec-note span { font-size: 11px; color: var(--text2); }

    /* Toast */
    .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg2); border: 0.5px solid rgba(249,115,22,0.3); border-left: 3px solid var(--orange); color: var(--text); font-size: 13px; padding: 12px 18px; border-radius: 10px; opacity: 0; transform: translateX(20px); transition: all 0.35s ease; z-index: 999; max-width: 280px; line-height: 1.5; }
    .toast.show { opacity: 1; transform: translateX(0); }
    .toast-title { font-weight: 500; font-size: 13px; }
    .toast-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }

    @media (max-width: 860px) {
      .page { grid-template-columns: 1fr; }
      .left { display: none; }
      .right { border-left: none; box-shadow: none; }
    }
