/* Ingreso: panel ilustrado a la izquierda (lo que muestra la plataforma, flotando)
   y formulario limpio a la derecha. Mismos colores que el panel: menta, verde y durazno. */
:root {
  --deep: #0f3a2f; --deep-2: #0a2c23; --mint: #6ee7b7; --mint-2: #10b981; --peach: #f8c6a8; --coral: #f08a5d;
  --text: #0f241d; --text-2: #4a5e57; --text-3: #8a9a94; --line: rgba(16, 58, 45, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.5 "DM Sans", system-ui, -apple-system, sans-serif; color: var(--text);
  background: radial-gradient(900px 600px at 0% 0%, #d5efe3 0%, transparent 60%), radial-gradient(800px 600px at 100% 100%, #f6e1d3 0%, transparent 55%), #eef3f0;
  display: grid; place-items: center; min-height: 100vh; padding: 24px;
}

.lg-shell {
  width: 100%; max-width: 1120px; min-height: 660px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 30px; padding: 12px; box-shadow: 0 40px 90px -40px rgba(15, 58, 47, .45), 0 0 0 1px rgba(255, 255, 255, .8);
  animation: lg-in .9s var(--ease) both;
}
@keyframes lg-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(8px); } }

/* ── Lado ilustrado ── */
.lg-art {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px; color: var(--deep);
  background:
    radial-gradient(520px 420px at 85% 95%, #f6b892 0%, transparent 60%),
    radial-gradient(500px 400px at 10% 15%, #c9f5e2 0%, transparent 65%),
    linear-gradient(160deg, #dcf6eb 0%, #a7e9cf 45%, #f3c9ad 100%);
}
.lg-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .45), transparent 55%); pointer-events: none; }
.lg-logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.lg-logo span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--deep); box-shadow: 0 6px 16px -6px rgba(15, 58, 47, .7); }

.lg-card, .lg-pill, .lg-chip {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 40px -18px rgba(15, 58, 47, .45);
}
.lg-card { border-radius: 18px; padding: 14px 16px; }
.lg-revenue { top: 92px; left: 34px; width: 300px; animation: lg-float 6s ease-in-out infinite, lg-pop .8s var(--ease) .2s both; }
.lg-card-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.lg-card-top em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-3); }
.lg-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--deep); color: var(--mint); }
.lg-revenue strong { display: block; font-size: 25px; letter-spacing: -.02em; margin: 6px 0 2px; }
.lg-revenue strong b { font-size: 11.5px; color: #047857; background: #d1fae5; border-radius: 999px; padding: 2px 7px; vertical-align: 4px; margin-left: 4px; }
.lg-spark { width: 100%; height: 60px; display: block; overflow: visible; }
.lg-line { stroke-dasharray: 320; stroke-dashoffset: 320; animation: lg-draw 1.8s var(--ease) .6s forwards; }
.lg-area { opacity: 0; animation: lg-fade 1s ease 1.6s forwards; }
.lg-dot { opacity: 0; animation: lg-fade .4s ease 2.2s forwards, lg-beat 1.8s ease-in-out 2.4s infinite; transform-origin: 220px 6px; }

.lg-pill { top: 22px; right: 22px; border-radius: 16px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; max-width: 300px; animation: lg-float 7s ease-in-out -2s infinite, lg-pop .8s var(--ease) .45s both; transition: opacity .3s, transform .3s; }
.lg-pill.swap { opacity: 0; transform: translateY(-8px) scale(.97); }
.lg-pill div { min-width: 0; }
.lg-pill strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-pill small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-pill b { margin-left: auto; font-size: 13px; }
.lg-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--mint-2), var(--deep)); }

.lg-roas { top: 268px; left: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; animation: lg-float 6.5s ease-in-out -1s infinite, lg-pop .8s var(--ease) .7s both; }
.lg-roas svg { width: 46px; height: 46px; }
.lg-ring { stroke-dasharray: 113; stroke-dashoffset: 113; animation: lg-ring 1.6s var(--ease) 1s forwards; }
.lg-roas strong { display: block; font-size: 18px; line-height: 1.1; }
.lg-roas small { font-size: 11.5px; color: var(--text-3); }

.lg-chip { top: 300px; right: 40px; border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; animation: lg-float 5.5s ease-in-out -3s infinite, lg-pop .8s var(--ease) .95s both; }
.lg-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-2); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: lg-beat 1.6s ease-in-out infinite; }

/* Mascota: sigue el mouse, se tapa los ojos con la contraseña y se pone triste si falla. */
.lg-buddy { position: absolute; z-index: 3; left: 50%; top: 382px; margin-left: -42px; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6fff0 0%, #6ee7b7 45%, #10b981 100%);
  box-shadow: 0 18px 34px -10px rgba(16, 120, 85, .65), inset 0 -8px 16px rgba(6, 95, 70, .35), inset 0 6px 12px rgba(255, 255, 255, .6);
  animation: lg-bob 4s ease-in-out infinite, lg-pop .9s var(--ease) 1.1s both; }
.lg-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 13px; padding-bottom: 6px; }
.lg-eye { width: 13px; height: 15px; border-radius: 50%; background: #fff; position: relative; overflow: hidden; animation: lg-blink 5s infinite; transition: height .25s var(--ease); }
.lg-eye i { position: absolute; left: 3px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--deep); transition: transform .12s linear; }
.lg-mouth { position: absolute; left: 50%; bottom: 22px; width: 16px; height: 8px; margin-left: -8px; border: 2.5px solid var(--deep); border-top: 0; border-radius: 0 0 12px 12px; transition: all .3s var(--ease); }
.lg-buddy.shy .lg-eye { height: 3px; margin-top: 4px; animation: none; }
.lg-buddy.shy .lg-eye i { opacity: 0; }
.lg-buddy.peek .lg-eye { height: 15px; }
.lg-buddy.sad .lg-mouth { border-top: 2.5px solid var(--deep); border-bottom: 0; border-radius: 12px 12px 0 0; bottom: 18px; }
.lg-bubble { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; background: var(--deep); padding: 6px 11px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(15, 58, 47, .7); }
.lg-bubble::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--deep); }
.lg-bubble.pop { animation: lg-bubble .45s var(--ease); }

.lg-copy { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 30px; }
.lg-copy small { font-size: 13px; color: rgba(15, 58, 47, .7); }
.lg-copy h2 { margin: 4px 0 0; font-size: 30px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; max-width: 420px; }

/* ── Formulario ── */
.lg-form { display: grid; place-items: center; padding: 40px 28px; }
.lg-form-in { width: 100%; max-width: 360px; animation: lg-in .9s var(--ease) .15s both; }
.lg-spark-ico { display: inline-block; font-size: 28px; color: var(--coral); line-height: 1; animation: lg-spin 8s linear infinite; }
.lg-form h1 { margin: 12px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.lg-sub { margin: 0 0 24px; color: var(--text-2); font-size: 14px; }
.lg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; animation: lg-shake .5s; }
form { display: flex; flex-direction: column; gap: 16px; }
form.shake { animation: lg-shake .5s; }
.lg-field span:first-child { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lg-field input { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.lg-field input::placeholder { color: #b5c0bb; }
.lg-field input:focus { outline: none; border-color: var(--mint-2); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.lg-pass { position: relative; display: block; }
.lg-pass input { padding-right: 46px; }
.lg-eye-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; border-radius: 9px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lg-eye-btn:hover, .lg-eye-btn.on { color: var(--deep); background: rgba(16, 58, 45, .06); }
.lg-eye-btn svg { width: 18px; height: 18px; }
.lg-btn { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #155443, var(--deep) 60%, var(--deep-2)); border: 0; border-radius: 14px; padding: 13px 16px; box-shadow: 0 14px 28px -14px rgba(15, 58, 47, .9); transition: transform .25s var(--ease), box-shadow .25s; }
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(15, 58, 47, .95); }
.lg-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lg-btn:hover svg { transform: translateX(3px); }
.lg-btn.loading { pointer-events: none; opacity: .85; }
.lg-btn.loading svg { animation: lg-spin .8s linear infinite; }
.lg-foot { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }

@keyframes lg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes lg-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes lg-pop { from { opacity: 0; scale: .85; filter: blur(6px); } }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-fade { to { opacity: 1; } }
@keyframes lg-ring { to { stroke-dashoffset: 30; } }
@keyframes lg-beat { 0%, 100% { scale: 1; } 50% { scale: 1.25; } }
@keyframes lg-blink { 0%, 46%, 50%, 100% { height: 15px; } 48% { height: 2px; } }
@keyframes lg-bubble { from { opacity: 0; transform: translate(-50%, 6px) scale(.9); } }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@keyframes lg-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

@media (max-width: 880px) {
  body { padding: 12px; }
  .lg-shell { grid-template-columns: 1fr; min-height: 0; }
  .lg-art { min-height: 250px; }
  .lg-revenue, .lg-pill, .lg-roas, .lg-chip { display: none; }
  .lg-buddy { top: 52px; left: auto; right: 22px; margin: 0; width: 64px; height: 64px; }
  .lg-face { gap: 10px; }
  .lg-copy { bottom: 22px; left: 22px; right: 22px; }
  .lg-copy h2 { font-size: 22px; max-width: 72%; }
  .lg-form { padding: 28px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .lg-line { stroke-dashoffset: 0; } .lg-area, .lg-dot { opacity: 1; } .lg-ring { stroke-dashoffset: 30; } }
