/* Login con la identidad del portal WebDemos de SITIS */
:root {
  --bg: #062f45; --bg2: #0b3c55; --accent: #38bdf8; --ink: #17324d; --muted: #64748b;
  --line: #d7e2ea; --brand-a: #38bdf8; --brand-b: #4338ca; --err: #b42318;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
[hidden] { display: none !important; }

.split { min-height: 100%; display: grid; grid-template-columns: 54fr 46fr; }

.hero { position: relative; overflow: hidden; color: #f7fbff; padding: 48px 7vw 40px 6vw; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 18% 18%, rgba(56,189,248,.16), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(228,0,87,.12), transparent 32%),
    linear-gradient(145deg, #052b40 0%, var(--bg) 48%, #0b3c55 100%); }
.brand { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.brand img { border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.brand span { font-weight: 900; letter-spacing: .22em; font-size: 17px; }
.pitch { margin: auto 0; position: relative; z-index: 1; max-width: 560px; }
.kicker { margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #9fd8ff; }
.kicker.dark { color: #0e7490; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 900; }
.lead { margin: 0; font-size: 17px; line-height: 1.5; color: #d6e5ee; }
.safe { position: relative; z-index: 1; margin: 0; font-size: 13px; color: #d6e5ee; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.ring { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.r1 { width: 520px; height: 520px; right: -170px; top: -230px; }
.r2 { width: 320px; height: 320px; left: -140px; bottom: -150px; }

.formside { position: relative; display: grid; place-items: center; padding: 40px 24px 90px; }
.card { width: min(430px, 100%); }
h2 { margin: 0 0 8px; font-size: 38px; letter-spacing: -0.04em; font-weight: 900; color: #0f2235; }
.muted { margin: 0 0 26px; color: var(--muted); }
label { display: block; margin: 16px 0 7px; font-size: 13.5px; font-weight: 700; color: #1e293b; }
input { width: 100%; padding: 14px 15px; font: inherit; font-size: 15px; color: var(--ink); background: #f8fafc;
  border: 1px solid var(--line); border-radius: 11px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(56,189,248,.18); }
button { width: 100%; margin-top: 24px; padding: 14px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer;
  border: 0; border-radius: 11px; background: linear-gradient(135deg, #0b3c55, #164e7a); box-shadow: 0 12px 26px rgba(6,47,69,.25); }
button:hover { background: linear-gradient(135deg, #0d4664, #1a5a8c); }
.note { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.err { margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: var(--err); font-size: 14px; border: 1px solid #fecdca; }
.sitis { position: absolute; right: 28px; bottom: 22px; width: 92px; opacity: .9; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .hero { padding: 28px 22px 30px; min-height: auto; }
  .pitch { margin: 34px 0 22px; }
  h1 { font-size: 34px; }
  .formside { padding: 30px 18px 110px; }
}
