/* TechOzanam · Página de acceso */
:root {
  --navy: #0b1f38;
  --navy-2: #13304f;
  --blue: #1d5bbf;
  --blue-dark: #174a9e;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f4f6f9;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --err: #b91c1c;
  --err-bg: #fef2f2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }

.lg-wrap { display: flex; min-height: 100vh; }

/* ── Panel institucional ── */
.lg-brand {
  flex: 1.1; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1a3a66 100%);
  display: flex;
}
.lg-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(96, 165, 250, 0.14), transparent 60%),
    radial-gradient(500px 500px at 10% 95%, rgba(29, 91, 191, 0.25), transparent 60%);
}
.lg-brand-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding: 3rem 3.5rem; width: 100%; max-width: 640px; margin: 0 auto;
}
.lg-brand-top { display: flex; align-items: center; gap: 0.9rem; }
.lg-logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.lg-brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }
.lg-brand-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.lg-brand-copy h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; }
.lg-brand-copy p { margin-top: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.65; max-width: 48ch; }
.lg-points { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.85rem; }
.lg-points li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.lg-point-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14);
}
.lg-point-ico svg { width: 16px; height: 16px; }
.lg-brand-foot { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* ── Lado del formulario ── */
.lg-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lg-card { width: 100%; max-width: 410px; }
.lg-logo-sm { display: none; width: 44px; height: 44px; object-fit: contain; margin-bottom: 0.8rem; }
.lg-card-head h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
.lg-card-head p { color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem; margin-bottom: 1.6rem; }

.lg-field { margin-bottom: 1.05rem; }
.lg-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; color: #334155; }
.lg-field label small { color: var(--muted); font-weight: 500; }
.lg-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.lg-label-row label { margin-bottom: 0; }
.lg-link { background: none; border: none; color: var(--blue); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.lg-link:hover { text-decoration: underline; }

.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > svg { position: absolute; left: 12px; width: 17px; height: 17px; color: #94a3b8; pointer-events: none; }
.lg-input input {
  width: 100%; padding: 0.72rem 0.9rem; font: inherit; font-size: 0.92rem;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lg-input > svg + input { padding-left: 2.4rem; }
.lg-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,191,0.14); }
.lg-eye { position: absolute; right: 8px; background: none; border: none; cursor: pointer; padding: 6px; color: #94a3b8; display: inline-flex; }
.lg-eye:hover { color: var(--muted); }
.lg-eye svg { width: 17px; height: 17px; }

.lg-btn {
  width: 100%; padding: 0.78rem; margin-top: 0.4rem;
  background: var(--blue); color: #fff; border: none; border-radius: 9px;
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.lg-btn:hover:not(:disabled) { background: var(--blue-dark); }
.lg-btn:disabled { opacity: 0.65; cursor: wait; }
.lg-btn:focus-visible { outline: 2px solid rgba(29,91,191,0.5); outline-offset: 2px; }

.lg-alert { padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.84rem; margin-bottom: 1rem; border: 1px solid; }
.lg-alert-error { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.lg-alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }

.lg-foot { margin-top: 1.7rem; font-size: 0.76rem; color: var(--muted); text-align: center; line-height: 1.6; }

/* ── Modales ── */
.lg-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 31, 56, 0.55); backdrop-filter: blur(3px); padding: 1rem;
}
.lg-modal-card {
  position: relative; background: #fff; border-radius: 12px; padding: 1.8rem;
  width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(11,31,56,0.3);
}
.lg-modal-card h3 { font-size: 1.15rem; font-weight: 700; }
.lg-modal-sub { color: var(--muted); font-size: 0.85rem; margin: 0.4rem 0 1.2rem; }
.lg-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1rem; color: var(--muted); cursor: pointer; }

/* ── Spinner ── */
.lg-spin {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%;
  animation: lgspin 0.7s linear infinite;
}
@keyframes lgspin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lg-brand { display: none; }
  .lg-logo-sm { display: block; }
  .lg-form-side { align-items: flex-start; padding-top: 14vh; }
}
