/* Fondo solo para el login */
.login-bg {
  background: linear-gradient(to top, #f5f5f5 0%, #ffe4e1 50%, #c0392b 100%);
  min-height: 100vh;
}

/* Tarjeta de login con sombra negra y roja */
.card-signin {
  border: 0;
  border-radius: 1rem;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.25),     /* Sombra negra suave */
    0 1.5px 8px 0 #c0392b80;         /* Sombra roja translúcida */
}

/* Título de la tarjeta */
.card-signin .card-title {
  margin-bottom: 2rem;
  font-weight: 300;
  font-size: 1.5rem;
}

/* Cuerpo de la tarjeta */
.card-signin .card-body {
  padding: 2rem;
}

/* Formulario de login */
.form-signin {
  width: 100%;
}

/* Botón principal: color rojo, hover coral */
.form-signin .btn-primary {
  background-color: #c0392b;
  border: none;
  color: #fff;
  font-weight: bold;
  letter-spacing: .1rem;
  border-radius: 5rem;
  padding: 1rem;
  font-size: 1rem;
  transition: background 0.2s;
}

.form-signin .btn-primary:hover,
.form-signin .btn-primary:focus {
  background-color: #ff6f61;
  color: #fff;
}

/* Grupo de campos con label flotante */
.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group input {
  height: auto;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
}

.form-label-group>label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0;
  line-height: 1.5;
  color: #495057;
  border: 1px solid transparent;
  border-radius: .25rem;
  transition: all .1s ease-in-out;
  z-index: -1;
  padding: 0.75rem 1.5rem;
}

.form-label-group input::placeholder {
  color: #00000069;
}

.form-label-group input:not(:placeholder-shown) {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
}

.form-label-group input:not(:placeholder-shown)~label {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 12px;
  color: #777;
}

/* Ocultar modal por defecto */
#ModalHelpDate {
  display: none;
}

/* --- STICKY FOOTER SOLUTION --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.wrapper-login {
  flex: 1 0 auto; /* Ocupa todo el espacio disponible */
  min-height: 100vh;
}

body > footer {
  flex-shrink: 0; /* Evita que el footer se encoja */
}


/* FIX FOOTER - Garantiza que el contenido del footer se quede dentro del área roja */
footer {
  position: relative; /* Anula cualquier posición absoluta/fija */
  width: 100%;
  background: #c0392b; /* Color de fondo del footer */
  color: white;
  padding: 1rem 0;
  z-index: 10; /* Evita solapamiento con otros elementos */
}

/* Estructura Flexbox para el cuerpo completo */
body.login-bg {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper-login {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flex-fill {
  flex: 1; /* Expande el contenido principal */
}
