/* ImPulsa R160 · Login Split-Screen (Im = Azul · Pulsa = Verde) */
:root {
  --ink: #17362c;
  --im-blue: #2b5797;
  --pulsa-green: #176553;
  --pulsa-green-hover: #124f41;
  --muted: #566a61;
  --paper: #f5f2ea;
  --card: #ffffff;
  --input-bg: #f3f5f4;
  --line: #d6dfd9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
}
@media (max-width: 920px) {
  body { grid-template-columns: 1fr; }
  .im-showcase { display: none !important; }
}

.im-showcase {
  position: relative;
  overflow: hidden;
  padding: 40px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.24), transparent 52%),
    radial-gradient(circle at 84% 84%, rgba(52, 211, 153, 0.24), transparent 48%),
    linear-gradient(155deg, #1a4768 0%, #1d6457 55%, #165144 100%);
  color: #f6f8f7;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.im-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.im-sc-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.im-sc-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.24);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.im-sc-badge i { width: 7px; height: 7px; border-radius: 50%; background: #86efac; box-shadow: 0 0 8px #86efac; }
.im-sc-tag { font-size: 12px; font-weight: 700; opacity: .82; }
.im-sc-hero { position: relative; z-index: 1; max-width: 520px; margin: auto 0; }
.im-sc-hero h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  margin: 0 0 14px;
}
.im-sc-hero p { margin: 0 0 26px; font-size: 15px; opacity: .9; line-height: 1.55; }
.im-sc-preview {
  background: rgba(13, 33, 38, 0.48);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.im-sc-prev-hdr { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .9; margin-bottom: 14px; font-weight: 600; }
.im-sc-pill { background: rgba(134, 239, 172, 0.2); color: #bbf7d0; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.im-sc-row { display: flex; justify-content: space-between; font-size: 13px; margin-top: 10px; }
.im-sc-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.14); margin-top: 5px; overflow: hidden; }
.im-sc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #34d399); }
.im-sc-foot { position: relative; z-index: 1; font-size: 12px; opacity: .76; }

.im-auth-col { display: grid; place-items: center; padding: 28px 20px; }
.im-auth-inner { width: min(440px, 100%); }
.im-brand-head { text-align: center; margin-bottom: 20px; }
.im-wordmark-big { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.im-wordmark-big .wm-im { color: var(--im-blue); font-style: italic; }
.im-wordmark-big .wm-pulsa { color: var(--pulsa-green); }
.im-brand-sub { margin: 8px 0 0; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }

.im-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 14px 36px rgba(23, 54, 44, 0.08);
}
h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.im-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }

.im-field { margin-bottom: 13px; }
.im-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.im-field input, .im-field select {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--ink); font: 500 14px system-ui, sans-serif;
}
.im-field input:focus, .im-field select:focus { outline: 2px solid var(--pulsa-green); outline-offset: 1px; background: #fff; }

.btn-pri, .btn-sec, .btn-google, nav a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 9px; font: 700 13.5px system-ui, sans-serif;
  cursor: pointer; border: 1px solid transparent; transition: filter .15s, background .15s;
}
.btn-pri { width: 100%; background: var(--pulsa-green); color: #fff; }
.btn-pri:hover { background: var(--pulsa-green-hover); }
.btn-sec { background: #edf2ef; color: var(--ink); border-color: var(--line); }
.btn-sec:hover { background: #e0eae5; }
.btn-google {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15,23,42,.05);
}
.btn-google:hover { background: #f8fafc; border-color: var(--im-blue); }
.im-actions-row { display: flex; gap: 8px; align-items: center; }
.im-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12px; }
.im-sep::before, .im-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cargando-wrap { display: grid; justify-items: center; gap: 14px; padding: 26px 8px; text-align: center; }
.cargando-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #cbd5e1; border-top-color: var(--pulsa-green); animation: im-spin .85s linear infinite; }
@keyframes im-spin { to { transform: rotate(360deg); } }
.cargando-txt { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }

nav { display: grid; gap: 8px; margin-top: 10px; }
nav a { text-decoration: none; background: var(--pulsa-green); color: #fff; }
nav a:hover { background: var(--pulsa-green-hover); }
#mensaje { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: #b91c1c; min-height: 18px; }
#mensaje.ok { color: var(--pulsa-green); }
