/* Login Callpcs (2026-09-26). Sin dependencias externas. */
:root {
  --navy: #0f2a8f;
  --navy-2: #0a1d63;
  --red: #e3212f;
  --ink: #16213a;
  --muted: #5d6882;
  --line: #dfe4ee;
  --bg: #f4f6fb;
  --white: #ffffff;
  --ok: #15803d;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }

.lg { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr); min-height: 100vh; }

/* ---------- panel de marca ---------- */
.lg-brand { position: relative; overflow: hidden; color: #fff; padding: 30px 56px 26px; height: 100vh; min-height: 640px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 110% 120%, rgba(227, 33, 47, .28), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.lg-brand::before { /* arco rojo, eco del logo */
  content: ""; position: absolute; width: 900px; height: 900px; right: -470px; bottom: -700px; border-radius: 50%;
  border: 38px solid var(--red); opacity: .9; }
.lg-brand::after { content: ""; position: absolute; width: 1100px; height: 1100px; right: -600px; bottom: -760px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12); }
.lg-logo { position: relative; z-index: 1; background: #fff; border-radius: 16px; padding: 10px 16px; width: max-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.lg-logo img { display: block; height: 58px; width: auto; }
.lg-hero { position: relative; z-index: 1; margin: auto 0; max-width: 620px; padding: 22px 0; }
.lg-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #ffd7da; background: rgba(227, 33, 47, .22); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 12px; border-radius: 99px; }
.lg-hero h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 10px; }
.lg-hero p { font-size: 16.5px; color: #d5dcf5; margin: 0 0 22px; max-width: 520px; }
.lg-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg-prod { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.lg-prod .i { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--navy); }
.lg-prod:nth-child(3n+2) .i { color: var(--red); }
.lg-prod .i svg { width: 21px; height: 21px; }
.lg-prod b { display: block; font-size: 14.5px; }
.lg-prod span { font-size: 12.5px; color: #c4cdef; }
.lg-foot { position: relative; z-index: 1; font-size: 13px; color: #b9c3ea; display: flex; gap: 18px; flex-wrap: wrap; }
.lg-foot span { display: inline-flex; align-items: center; gap: 6px; }
.lg-foot svg { width: 15px; height: 15px; }

/* ---------- tarjeta de acceso ---------- */
.lg-side { display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }
.lg-card { width: 100%; max-width: 420px; margin: 0 auto; }
.lg-card .mini-logo { display: none; }
.lg-card h2 { font-size: 28px; letter-spacing: -.01em; margin: 0 0 6px; }
.lg-card .sub { color: var(--muted); margin: 0 0 28px; }
.lg-field { margin-bottom: 18px; }
.lg-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.lg-input { position: relative; }
.lg-input svg.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8a94ab; pointer-events: none; }
.lg-input input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15.5px; padding: 0 46px 0 44px; outline: none; transition: border-color .15s, box-shadow .15s; }
.lg-input input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 42, 143, .12); }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none;
  border-radius: 9px; color: #8a94ab; cursor: pointer; display: grid; place-items: center; }
.lg-eye:hover { background: var(--bg); color: var(--ink); }
.lg-eye svg { width: 19px; height: 19px; }
.lg-caps { display: none; margin-top: 7px; font-size: 12.5px; color: #b45309; }
.lg-caps.on { display: block; }
#b_login { width: 100%; height: 52px; margin-top: 8px; border: 0; border-radius: 12px; cursor: pointer; font: 600 16px var(--font); color: #fff;
  background: var(--navy); box-shadow: 0 8px 20px rgba(15, 42, 143, .28); transition: background .15s, transform .05s, box-shadow .15s; }
#b_login:hover { background: #0b2175; }
#b_login:active { transform: translateY(1px); }
#b_login.cargando { color: transparent; pointer-events: none; position: relative; }
#b_login.cargando::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
#msg_error:not(:empty) { margin-top: 16px; padding: 11px 14px; border-radius: 10px; font-size: 14px; color: #9f1239; background: #fdecee;
  border: 1px solid #f7c6cc; }
.lg-help { margin-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }
.lg-copy { margin-top: 34px; font-size: 12.5px; color: #8a94ab; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lg-brand { padding: 36px 36px; }
  .lg-hero h1 { font-size: 32px; }
}
@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; }
  .lg-brand { height: auto; min-height: 0; }
  .lg-brand { padding: 22px 20px 26px; }
  .lg-brand::before { width: 520px; height: 520px; right: -300px; bottom: -380px; border-width: 24px; }
  .lg-logo img { height: 48px; }
  .lg-hero { padding: 18px 0 0; margin: 0; }
  .lg-hero h1 { font-size: 24px; margin: 12px 0 6px; }
  .lg-hero p { font-size: 14.5px; margin-bottom: 16px; }
  .lg-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lg-prod { padding: 9px 10px; gap: 9px; }
  .lg-prod .i { width: 32px; height: 32px; }
  .lg-prod .i svg { width: 17px; height: 17px; }
  .lg-prod b { font-size: 13px; }
  .lg-prod span, .lg-foot { display: none; }
  .lg-side { padding: 28px 16px 36px; }
}
