/* ── 4. LOGIN ─────────────────────────────────────────────────────────── */
.login-view { min-height: 100vh; }
.login-grid { display: grid; grid-template-columns: minmax(420px, 42%) 1fr; min-height: 100vh; }
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 56px 32px;
  background: radial-gradient(1200px 600px at -10% 110%, rgba(59,130,246,.55), transparent 60%), linear-gradient(160deg, #1D4ED8 0%, #0B3AB8 45%, #0B2A6F 100%);
  display: flex; flex-direction: column; gap: 28px;
}
.login-hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.14); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.02); }
.login-brand { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.login-brand img { width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 4px; }
.login-brand strong { font-size: 22px; letter-spacing: -.02em; }
.login-brand .chip-tefa { font-size: 11px; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 99px; margin-left: 8px; vertical-align: 3px; }
.login-brand small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; opacity: .85; }
.login-hero h1 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 800; margin: 0; position: relative; z-index: 1; }
.login-hero p.lead-sm { color: rgba(255,255,255,.86); font-size: 15px; margin: 0; max-width: 560px; position: relative; z-index: 1; }
.hero-feats { display: grid; gap: 12px; position: relative; z-index: 1; }
.hero-feat { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.hero-feat i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 18px; }
.hero-feat strong { display: block; font-size: 15px; }
.hero-feat span { font-size: 13px; opacity: .85; }
.hero-quote { margin-top: auto; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.hero-quote em { display: block; font-size: 14px; opacity: .92; }
.hero-quote .by { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.hero-secure { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; opacity: .85; position: relative; z-index: 1; display: flex; gap: 8px; align-items: center; }

.login-panel { padding: 28px 48px; display: flex; flex-direction: column; background: var(--canvas); }
.login-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.server-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 99px; }
.server-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.server-pill.err .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.server-pill small { color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.login-form-wrap { width: 100%; max-width: 480px; margin: auto; padding: 32px 0; }
.gateway-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--primary-text); background: var(--primary-soft); padding: 5px 12px; border-radius: 99px; }
.login-form-wrap h2 { font-size: 32px; font-weight: 800; margin: 12px 0 6px; }
.fmt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.fmt-chips span.mono { background: var(--inset); color: var(--text-2); padding: 2px 8px; border-radius: 6px; }
.demo-box { background: var(--inset); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.demo-btn { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; min-height: 52px; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.demo-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.demo-btn strong { display: block; font-size: 13px; }
.demo-btn small { font-family: 'JetBrains Mono', monospace; color: var(--muted); font-size: 11px; }
.sec-note { display: flex; gap: 12px; background: var(--inset); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--text-2); }
.sec-note i { color: var(--danger); font-size: 18px; }
.login-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); gap: 10px; flex-wrap: wrap; }

