:root {
  --ink: #0c1424; --muted: #6b7382; --line: #e7e9ee; --azul: #001789; --azul-soft: #e8ebf8;
  --rojo: #c8102e; --rojo-soft: #fbe9ec;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login-foto {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #001789 0%, #0b1f8f 55%, #06105a 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 56px;
}
.login-foto::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.login-foto::after {
  content: ''; position: absolute; right: -12%; top: -20%; width: 70%; height: 70%;
  border-radius: 50%; border: 22px solid rgba(200, 16, 46, .9); border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(-20deg);
}
.login-foto img { position: relative; z-index: 1; width: 92%; max-width: 760px; height: auto; margin: 0 auto 28px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.login-lema { position: relative; z-index: 1; color: #fff; }
.login-lema b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.login-lema span { opacity: .8; }
.login-caja { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(32px, 7vw, 110px); }
.login-logo { width: 300px; max-width: 100%; height: auto; margin-bottom: 36px; }
h1 { margin: 0 0 22px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
form { display: grid; gap: 16px; max-width: 380px; }
label span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; border: 1px solid #d6dae2; border-radius: 12px; outline: none;
}
input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-soft); }
button {
  font: inherit; font-weight: 800; font-size: 16px; padding: 13px; border: 0; border-radius: 12px;
  background: var(--azul); color: #fff; cursor: pointer;
}
button:hover { filter: brightness(1.12); }
.msg { max-width: 380px; margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-weight: 600; }
.msg-error { background: var(--rojo-soft); color: var(--rojo); }
.msg-aviso { background: var(--azul-soft); color: var(--azul); }
.instalar { margin: 22px 0 0; }
.instalar button { background: none; color: var(--azul); padding: 0; font-size: 14px; text-decoration: underline; }
footer { margin-top: 48px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-foto { display: none; }
  .login-caja { padding: 32px 20px; }
}
