/* ================================================================
   SGF – Página de inicio / Login
   ----------------------------------------------------------------
   Los colores y las tipografías salen de css/temas.css (tokens --fs-*),
   igual que el resto del sistema. Antes este archivo tenía su propio
   :root con la paleta de Finsol clavada, y por eso el login era la
   única pantalla que no seguía el tema elegido.
   ================================================================ */

/* ----------------------------------------------------------------
   LAYOUT GENERAL
   ---------------------------------------------------------------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--fs-gray-bg);
  font-family: var(--fs-font-ui);
  margin: 0;
}

/* ----------------------------------------------------------------
   HEADER MÍNIMO
   ---------------------------------------------------------------- */
#header-menu {
  background: linear-gradient(90deg, var(--fs-band-from) 0%, var(--fs-band-to) 100%) !important;
  background-image: linear-gradient(90deg, var(--fs-band-from) 0%, var(--fs-band-to) 100%) !important;
  padding: 10px 20px;
}

#header-menu h1 {
  font-family: var(--fs-font-display);
  color: var(--fs-on-band);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ----------------------------------------------------------------
   CONTENEDOR CENTRADO
   ---------------------------------------------------------------- */
.inicio-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 60px;
}

/* ----------------------------------------------------------------
   CARD DE LOGIN
   ---------------------------------------------------------------- */
.inicio-card {
  background: var(--fs-white);
  border-radius: 8px;
  box-shadow: var(--fs-shadow-md);
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 400px;
}

/* ----------------------------------------------------------------
   LOGO
   ---------------------------------------------------------------- */
.inicio-logo-wrap {
  text-align: center;
  margin-bottom: 22px;
}

/* El logo es una marca horizontal: manda el ancho, no el alto */
.inicio-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------
   TÍTULO DENTRO DE LA CARD
   ---------------------------------------------------------------- */
.inicio-subtitle {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}

/* ----------------------------------------------------------------
   LABELS E INPUTS
   ---------------------------------------------------------------- */
.inicio-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--fs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.inicio-card input[type="text"],
.inicio-card input[type="password"] {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--fs-gray-border);
  border-radius: 6px;
  background: var(--fs-gray-light);
  font-size: 14px;
  padding: 0 12px;
  box-sizing: border-box;
  color: var(--fs-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 18px;
  font-family: inherit;
}

.inicio-card input[type="text"]:focus,
.inicio-card input[type="password"]:focus {
  border-color: var(--fs-orange);
  box-shadow: 0 0 0 3px var(--fs-focus);
  outline: none;
  background: var(--fs-white);
}

/* ----------------------------------------------------------------
   BOTÓN INGRESAR
   ---------------------------------------------------------------- */
/* --fs-cta: rosa en los temas de Comarfin, azul en el clásico. Es el único botón de la
   pantalla, así que en Comarfin se lleva el acento; en Finsol queda como siempre. */
.inicio-card input[type="submit"] {
  width: 100%;
  height: 42px;
  background: var(--fs-cta);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.inicio-card input[type="submit"]:hover {
  background: var(--fs-accent-hover);
  box-shadow: var(--fs-shadow-md);
}

.inicio-card input[type="submit"]:focus-visible {
  outline: 2px solid var(--fs-navy);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   MENSAJE DE ERROR — semántico, no cambia con el tema
   ---------------------------------------------------------------- */
.textoMsg {
  margin-top: 14px;
  padding: 10px 14px;
  background: #FFF3F3;
  border: 1px solid #FECACA;
  border-radius: 6px;
  color: #B91C1C;
  font-size: 12px;
  text-align: center;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
  background: var(--fs-band) !important;
  background-image: none !important;
  padding: 10px 20px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer p {
  color: var(--fs-on-band-soft);
  font-size: 11px;
  margin: 0;
}

footer a {
  color: var(--fs-icon);
  text-decoration: none;
}

footer a:hover {
  color: var(--fs-on-band);
}
