body {
  font-family: "DM Sans", sans-serif;
  background-color: #f4f4f4;
  display: flex;
  align-items: stretch;
  height: 100vh;
  font-weight: 300;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: center;
}

.form {
  font-family: "DM Sans", sans-serif;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e1e1e1;
  text-align: center;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 34px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 10px;
  background-color: #fff;
}

.input-group .material-icons {
  margin-right: 8px;
  color: #666;
}

.input-group input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  padding: 8px 0;
}

.input-group .toggle-password {
  cursor: pointer;
  color: #666;
}

h1 {
  font-family: "DM Sans", sans-serif;
  color: #009fdf;
  width: 300px;
  font-size: 35px;
}

button {
  background-color: #009fdf;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;

  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

button:hover {
  background-color: #007bbd;
}

.alert {
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.5s ease, height 0.5s ease, padding 0.5s ease;
}

.alert.hidden {
  opacity: 0;
  height: 0;
  padding: 0 20px;
  overflow: hidden;
  border: none;
  margin: 0;
}

.alert.error {
  background-color: #ffe0e0;
  color: #d8000c;
  border: 1px solid #d8000c;
}

.alert.success {
  background-color: #e0f9e0;
  color: #267a2f;
  border: 1px solid #267a2f;
}

button:disabled {
  background-color: #009fdf61;
  cursor: not-allowed;
}

.alert {
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
}

.alert.hidden {
  display: none;
}

/* Estilo del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  color: #007bbd;
}

.modal-content {
  background-color: #fff;
  margin: 13% auto;
  padding: 31px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}

.modal-content h2 {
  margin-bottom: 52px;
  font-size: 22px;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 7px;
}

.modal-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-confirm {
  background-color: #009fdf;
  color: white;
  width: 111px;
}

.btn-confirm:hover {
  background-color: #007bbd;
}

.btn-cancel {
  background-color: #e7656d;
}

.btn-cancel:hover {
  background-color: #999;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  /* Color de fondo del spinner */
  border-radius: 50%;
  border-top: 4px solid #fff;
  /* Color principal del spinner */
  width: 20px;
  height: 20px;
  -webkit-animation: spin 1s linear infinite;
  /* Animación para navegadores basados en Webkit */
  animation: spin 1s linear infinite;
  display: inline-block;
  /* Permite que el spinner se muestre en línea */
  vertical-align: middle;
  /* Alineación vertical con el texto si hay */
  margin-left: 8px;
  /* Espacio a la izquierda del spinner si hay texto */
  box-sizing: border-box;
}

/* Animación de giro del spinner */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Clase de utilidad para ocultar/mostrar elementos */
.hidden {
  display: none !important;
}

/* Estilos para el botón cuando el spinner está activo */
#submitBtn {
  display: flex;
  /* Usamos flexbox para centrar y alinear los elementos internos */
  justify-content: center;
  /* Centra horizontalmente */
  align-items: center;
  /* Centra verticalmente */
  gap: 5px;
  /* Espacio entre el texto y el spinner */
}

/* Opcional: mejora visual para el botón deshabilitado */
button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
  /* Ligeramente más transparente cuando está deshabilitado */
}
