html,
body {
  height: 100%;
}

body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Botón Moderno Azul Oscuro */
.btn-modern-login {
    cursor: pointer;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 14px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* MARGEN DEL ICONO: Forzamos el espacio aquí */
.btn-modern-login i {
    margin-right: 12px !important; 
    display: inline-block;
}

/* ESTADO CARGANDO (Disabled): Para que NO se ponga azul claro/gris de Bootstrap */
.btn-modern-login:disabled {
    background: #1e3a8a !important; /* Mantenemos el azul oscuro */
    opacity: 0.8 !important;         /* Solo bajamos un poco la intensidad */
    cursor: not-allowed !important;
    color: #e2e8f0 !important;       /* Texto un poco más opaco */
}

.ico_espacio{
  margin-right: 8px;
}