html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8A171C; /* tono institucional */
  background-size: cover;
  background-position: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  padding: 40px 0;
}

/* Contenedor principal del formulario */
.form-signin {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* Título */
.form-signin h1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Texto informativo */
.form-signin p {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Campos con etiquetas flotantes */
.form-label-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label-group > input,
.form-label-group > label {
  height: 3.125rem;
  padding: 0.75rem;
  border-radius: 4px;
}

.form-label-group > input {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 100%;
}

.form-label-group > input:focus {
  outline: none;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Labels */
.form-label-group > label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin-bottom: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
}

/* Ocultar placeholder nativo */
.form-label-group input::placeholder {
  color: transparent;
}

/* Efecto flotante */
.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: rgba(255, 255, 255, 0.6);
}

/* Botón principal */
.btn-primary {
  background-color: #fff !important;
  color: #8A171C !important;
  border: none !important;
  font-weight: 500;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #f0f0f0 !important;
  transform: translateY(-1px);
}

/* Texto inferior */
.text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Responsivo */
@media (max-width: 576px) {
  .form-signin {
    max-width: 90%;
    padding: 1.5rem;
  }

  .form-signin::before {
    width: 180px;
    height: 120px;
    margin-bottom: 0.5rem;
  }

  .form-signin h1 {
    font-size: 1.3rem;
  }
}
