:root {
  --paper: #f7f3ec; --paper-2: #efe9df; --card: #fff; --ink: #1d1b18; --ink-2: #57524a; --ink-3: #958f84; --line: #e6dfd3; --line-2: #d8cfc0;
  --brand: #d9482b; --brand-d: #b43a20; --brand-l: #fbe8e1; --olive: #2e6b52; --olive-l: #e2efe8; --mustard: #c98a12; --danger: #c2413a;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }

.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr); }
.auth-art { position: relative; overflow: hidden; background: #1d1b18; color: #f7f3ec; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-art .brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.brand-mark { width: 30px; height: 34px; }
.wm { font: 650 24px var(--serif); letter-spacing: -.3px; } .wm em { color: var(--brand); font-style: normal; }
.pitch { position: relative; z-index: 1; max-width: 520px; }
.pitch h1 { font: 500 clamp(30px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -.8px; margin: 0 0 18px; }
.pitch h1 em { color: #f0a58f; font-style: italic; }
.pitch p { color: #cfc8bb; font-size: 16px; margin: 0; max-width: 460px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; position: relative; z-index: 1; flex-wrap: wrap; }
.facts b { display: block; font: 650 26px var(--serif); color: #fff; } .facts span { color: #a39c90; font-size: 12.5px; }
/* Mapa de puntos decorativo: cada punto, un local */
.dots { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle, #d9482b 1.2px, transparent 1.6px), radial-gradient(circle, #2e6b52 1px, transparent 1.4px), radial-gradient(circle, #c98a12 1px, transparent 1.4px);
  background-size: 23px 19px, 31px 29px, 41px 37px; background-position: 0 0, 11px 7px, 5px 17px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 58%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 60% at 72% 58%, #000 10%, transparent 70%); }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 18px; }
.card { width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px 28px; box-shadow: 0 1px 2px rgba(29,27,24,.04), 0 12px 32px -12px rgba(29,27,24,.14); display: flex; flex-direction: column; gap: 14px; }
.card h2 { font: 650 26px var(--serif); margin: 0; letter-spacing: -.4px; }
.card .sub { color: var(--ink-2); margin: -8px 0 6px; }
.fld { display: flex; flex-direction: column; gap: 6px; } .fld > span { font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.fld input { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.fld input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,27,24,.08); }
.fld input[aria-invalid="true"] { border-color: var(--danger); }
.pw { position: relative; } .pw input { padding-right: 44px; }
.eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; opacity: .55; font-size: 15px; }
.eye:hover, .eye[aria-pressed="true"] { opacity: 1; background: var(--paper); }
.caps { color: var(--mustard); font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chk { display: flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; font-size: 13px; } .chk input { accent-color: var(--ink); width: 16px; height: 16px; }
.lnk { border: 0; background: none; color: var(--brand-d); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px; } .lnk:hover { text-decoration: underline; }
.btn { height: 46px; border: 0; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 650; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; transition: background .15s, transform .05s; }
.btn:hover { background: #000; } .btn:active { transform: translateY(1px); } .btn[disabled] { opacity: .6; cursor: default; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.msg { border-radius: 10px; padding: 10px 12px; font-size: 13px; } .msg.err { background: #fbe4e2; color: #8e2a24; } .msg.info { background: var(--paper); color: var(--ink-2); } .msg.ok { background: var(--olive-l); color: #214f3c; }
.meter { height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; } .meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.hint { color: var(--ink-3); font-size: 12px; }
.foot { color: var(--ink-3); font-size: 12px; margin: 0; }
.shake { animation: shake .35s; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 22px 20px 26px; gap: 16px; }
  .pitch h1 { font-size: 26px; margin-bottom: 8px; } .pitch p { font-size: 14px; } .facts { display: none; }
  .auth-panel { justify-content: flex-start; padding: 20px 16px 32px; }
  .card { padding: 24px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
