/* =====================================================================
   auth.css — Pantallas sin sesión (login, recuperar contraseña, bloqueo).
   Dos paneles: foto corporativa (izquierda) + tarjeta del formulario (derecha).
   La foto viene de la variable --auth-foto (public/img/login.jpg) si existe.
   ===================================================================== */
.auth-fondo { min-height: 100vh; background: var(--fondo); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

/* Panel de la foto */
.auth__panel-foto {
  position: relative; display: flex; align-items: flex-end; padding: 48px;
  background:
    linear-gradient(180deg, rgba(3, 20, 70, .05) 55%, rgba(3, 20, 70, .75)),
    var(--auth-foto, linear-gradient(135deg, var(--color-primario), var(--color-secundario)));
  background-size: cover; background-position: center; color: #fff; /* la foto es el recorte del edificio (login-edificio.jpg) */
}
.auth__panel-texto { max-width: 420px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.auth__lema { font-size: 26px; line-height: 1.2; margin: 0 0 8px; font-weight: 300; }
.auth__lema b { font-weight: 800; }
.auth__marca-grande { font-size: 15px; letter-spacing: .28em; font-weight: 700; text-transform: uppercase; opacity: .9; }

/* Panel del formulario */
.auth__panel-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--esp-5); }
.auth__tarjeta {
  width: 100%; max-width: 440px; background: var(--superficie);
  border: 1px solid var(--borde); border-radius: 18px; box-shadow: var(--sombra-fuerte);
  padding: var(--esp-6);
}
.auth__marca { display: flex; align-items: center; gap: var(--esp-3); margin-bottom: var(--esp-5); }
.auth__logo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radio); }
.auth__logo--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-primario), var(--color-secundario)); color: #fff; }
.auth__logo--placeholder .icono { width: 30px; height: 30px; }
.auth__nombre { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.auth__sub { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--texto-suave); }
.auth__titulo { font-size: 22px; margin-bottom: 4px; }
.auth__texto { color: var(--texto-suave); margin-bottom: var(--esp-4); }
.auth__texto--centro { text-align: center; margin-top: var(--esp-4); margin-bottom: 0; }
.auth__fila { display: flex; align-items: center; justify-content: space-between; }
.auth__pie { margin-top: var(--esp-5); font-size: 12px; color: var(--texto-suave); }

/* Pantallas chicas: la foto pasa a ser el fondo y la tarjeta queda encima */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__panel-foto { display: none; }
  .auth-fondo--foto { background: linear-gradient(rgba(3, 20, 70, .55), rgba(3, 20, 70, .55)), var(--auth-foto); background-size: cover; background-position: center; }
  .auth-fondo--foto .auth__pie { color: rgba(255, 255, 255, .85); }
}

/* ── Variante "flotante": foto completa de fondo, tarjeta flotante a la derecha (deja ver el lema del arte) ── */
.auth-estilo--flotante { background: var(--auth-foto-completa); background-size: cover; background-position: center; }
.auth-estilo--flotante .auth { display: flex; justify-content: flex-end; align-items: flex-end; padding: 6vh 6vw; }
.auth-estilo--flotante .auth__panel-foto { display: none; }
.auth-estilo--flotante .auth__panel-form { padding: 0; align-items: flex-end; }
.auth-estilo--flotante .auth__tarjeta { background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); max-width: 400px; }
.auth-estilo--flotante .auth__pie { color: rgba(255, 255, 255, .8); }

/* ── Variante "centrada": foto completa oscurecida, tarjeta al centro ── */
.auth-estilo--centrada { background: linear-gradient(rgba(3, 20, 70, .45), rgba(3, 20, 70, .45)), var(--auth-foto-completa); background-size: cover; background-position: center; }
.auth-estilo--centrada .auth { display: flex; justify-content: center; align-items: center; }
.auth-estilo--centrada .auth__panel-foto { display: none; }
.auth-estilo--centrada .auth__tarjeta { background: rgba(255, 255, 255, .96); }
.auth-estilo--centrada .auth__pie { color: rgba(255, 255, 255, .85); }
