/* ============================================================
   login.css — Página de Login. Adaptado de prototipo/project/Login.html
   (se quitaron los botones SSO, "recordarme" y "olvidé mi contraseña"
   del demo: no son funcionales en esta fase).
   ============================================================ */
body { margin: 0; height: 100vh; overflow: hidden; }
.login { display: flex; height: 100vh; }

/* ---------- Panel izquierdo de marca ---------- */
.brand-panel {
  flex: 1.15; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 22% 8%, oklch(0.42 0.09 220 / .55), transparent 62%),
    radial-gradient(700px 600px at 90% 100%, oklch(0.40 0.10 200 / .40), transparent 60%),
    var(--graphite);
  color: var(--on-graphite);
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 56px;
}
.grain { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(oklch(1 0 0 / .25) .6px, transparent .6px);
  background-size: 26px 26px; opacity: .04; }

.brand-top { position: absolute; top: 42px; left: 56px; z-index: 2; display: flex; align-items: center; gap: 12px; animation: fadeUp .6s .05s both; }
.brand-top .wm { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.brand-top .wm span { color: var(--on-graphite-2); font-weight: 500; }

.brand-hero { position: relative; z-index: 2; max-width: 460px; }
.hero-mark { margin-bottom: 28px; filter: drop-shadow(0 14px 34px oklch(0 0 0 / .5)); animation: fadeUp .7s .1s both; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1.05; letter-spacing: -.025em; color: #fff; margin: 0; animation: fadeUp .7s .2s both; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #56c7d6, #8fe3d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 15.5px; line-height: 1.55; color: var(--on-graphite-2); margin: 18px 0 0; max-width: 420px; animation: fadeUp .7s .3s both; }

.feat { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; animation: fadeUp .7s .42s both; }
.feat li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--on-graphite); }
.feat .dot { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: oklch(1 0 0 / .07); border: 1px solid oklch(1 0 0 / .12); color: #5fd0db; }

.brand-foot { position: absolute; bottom: 34px; left: 56px; right: 56px; z-index: 2; font-size: 12px; color: var(--on-graphite-2); animation: fadeUp .7s .5s both; }
.brand-foot b { color: var(--on-graphite); font-weight: 600; }

/* ---------- Panel derecho del formulario ---------- */
.form-panel { flex: 1; min-width: 420px; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 40px; }
.form-card { width: 100%; max-width: 372px; animation: fadeUp .6s .15s both; }

.form-brand { display: none; align-items: center; gap: 10px; margin-bottom: 30px; }
.form-brand .wm { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.form-brand .wm span { color: var(--ink-3); font-weight: 500; }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1.title { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.02em; margin: 9px 0 6px; color: var(--ink); }
.subtitle { font-size: 13.5px; color: var(--ink-3); margin: 0 0 26px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input-wrap input {
  width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0 14px; font-size: 14px; color: var(--ink); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap input::placeholder { color: var(--ink-4); }
.input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }

.error-box { display: none; margin: 0 0 15px; padding: 11px 13px; border-radius: 10px; background: var(--neg-soft); color: var(--neg); font-size: 13px; font-weight: 600; }
.error-box.show { display: block; }

.btn-primary {
  width: 100%; height: 46px; border-radius: 10px; border: none; color: #fff; cursor: pointer;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 18px oklch(0.50 0.095 222 / .35); transition: transform .12s, box-shadow .15s, filter .15s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 9px 24px oklch(0.50 0.095 222 / .42); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .7; cursor: default; }

.help { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 26px; }

@media (max-width: 880px) {
  .brand-panel { display: none; }
  .form-panel { flex: 1; min-width: 0; }
  .form-brand { display: flex; }
}
