/* RedSN: pantalla de inicio de sesion (maqueta aprobada). */
:root {
  --azul: #0057A8; --azul-oscuro: #003F7D; --azul-noche: #001F3F; --azul-suave: #E8F0FA;
  --texto: #1A2433; --texto-2: #5B6678; --borde: #D9DFE8; --blanco: #FFFFFF; --verde: #2FBF71;
  --rojo: #B42318;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: var(--blanco); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 6px; }
.pantalla { min-height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; }

.marca { position: relative; overflow: hidden; isolation: isolate; background: var(--azul-noche); color: var(--blanco); padding: 44px 56px; display: flex; flex-direction: column; }
.fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; animation: acercar 30s ease-in-out infinite alternate; }
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.08); } }
.marca::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,31,63,.92) 0%, rgba(0,31,63,.35) 45%, rgba(0,31,63,.75) 100%), linear-gradient(135deg, rgba(0,87,168,.55), rgba(0,87,168,.15)); }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.logo span { color: #8EC2FF; }
.logo::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: #8EC2FF; margin-top: 8px; }
.marca-texto { margin-top: 64px; max-width: 480px; animation: entrar .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.marca-texto h1 { font-size: 50px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px; }
.marca-texto h1 span { background: linear-gradient(90deg, #8EC2FF, #CFE5FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca-texto p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 400px; }

.tarjetas { position: relative; flex: 1; min-height: 260px; }
.tarjeta { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 40px rgba(0,20,50,.35), inset 0 1px 0 rgba(255,255,255,.25); animation: aparecer .7s cubic-bezier(.2,.8,.2,1) both, flotar 7s ease-in-out infinite; max-width: 260px; }
.tarjeta .cab { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
.tarjeta .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(142,194,255,.18); color: #CFE5FF; }
.tarjeta .dato { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tarjeta .desc { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }
.t1 { left: 0; top: 40px; animation-delay: .3s, 0s; }
.t2 { right: 8%; top: 10px; animation-delay: .45s, -2.5s; }
.t3 { left: 30%; bottom: 20px; animation-delay: .6s, -4.5s; }
@keyframes aparecer { from { opacity: 0; translate: 0 16px; } }
@keyframes flotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.marca-pie { font-size: 13px; color: rgba(255,255,255,.55); }

.lado-form { display: grid; place-items: center; padding: 48px 24px; position: relative; background: radial-gradient(600px 400px at 100% 0%, rgba(0,87,168,.07), transparent 70%), radial-gradient(500px 360px at 0% 100%, rgba(0,87,168,.05), transparent 70%), var(--blanco); }
.form-pie { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; color: #8A94A4; }
.form { width: 100%; max-width: 380px; animation: entrar .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } }
.form h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.form .sub { color: var(--texto-2); font-size: 15px; margin-bottom: 30px; }
.alerta { margin-bottom: 20px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: #FEF3F2; color: var(--rojo); border: 1px solid #FECDCA; }
.alerta.info { background: #EEF4FB; color: var(--azul-oscuro); border-color: #C8DAF0; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.entrada { display: flex; align-items: center; border: 1.5px solid var(--borde); border-radius: 12px; background: #FAFBFD; transition: border-color .15s, box-shadow .15s, background .15s; }
.entrada:hover { border-color: #BFC9D6; }
.entrada:focus-within { border-color: var(--azul); background: var(--blanco); box-shadow: 0 0 0 4px var(--azul-suave); }
.entrada > svg { flex: none; margin-left: 14px; color: var(--texto-2); }
.entrada:focus-within > svg { color: var(--azul); }
.entrada input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--texto); padding: 14px 14px 14px 10px; }
.entrada input::placeholder { color: #8792A2; }
.ver { border: 0; background: none; cursor: pointer; color: var(--texto-2); padding: 10px 14px; display: grid; place-items: center; min-height: 44px; }
.ver:hover { color: var(--azul); }
.fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 28px; font-size: 14px; flex-wrap: wrap; }
.recordar { display: flex; align-items: center; gap: 8px; color: var(--texto-2); cursor: pointer; min-height: 44px; }
.recordar input { width: 17px; height: 17px; accent-color: var(--azul); }
.enlace { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--azul); font-weight: 600; min-height: 44px; }
.enlace:hover { text-decoration: underline; }
.boton { width: 100%; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(180deg, #0A63B8, var(--azul)); color: var(--blanco); font: inherit; font-size: 16px; font-weight: 700; padding: 15px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 24px rgba(0,87,168,.28), inset 0 1px 0 rgba(255,255,255,.18); transition: background .15s, transform .1s, box-shadow .15s; }
.boton svg { transition: transform .2s; }
.boton:hover { background: var(--azul-oscuro); }
.boton:hover svg { transform: translateX(4px); }
.boton:active { transform: scale(.98); }
.boton[disabled] { opacity: .8; cursor: progress; }
.aviso { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--borde); font-size: 13px; color: var(--texto-2); line-height: 1.5; text-align: center; }
.aviso a { color: var(--azul); font-weight: 600; text-decoration: none; }
.aviso a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; } }
@media (max-width: 860px) {
  .pantalla { grid-template-columns: 1fr; }
  .marca { padding: 24px 20px 44px; }
  .marca-texto { margin-top: 32px; }
  .marca-texto h1 { font-size: 32px; }
  .marca-texto p { font-size: 15px; }
  .tarjetas { min-height: 0; flex: none; display: flex; gap: 10px; margin-top: 24px; }
  .tarjeta { position: static; padding: 12px 14px; animation: none; flex: 1; }
  .tarjeta .dato { font-size: 15px; }
  .tarjeta .cab, .t3, .marca-pie, .form-pie { display: none; }
  .lado-form { place-items: start center; padding: 30px 20px 40px; border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; }
}
