body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f8ff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  max-width: 400px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  background: #94c0f7;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid black;  
}

.register h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  color: blue;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
  height: 40px; /* Unifica la altura de todos los inputs */
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.password-container input {
  flex: 1;
  width: 100%;
  height: 40px;
  min-width: 100%;
  padding: 10px;
  padding-right: 40px; /* Espacio para el ícono */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: white;
  color: #333; /* Asegura que el texto sea visible */
}

.password-container i {
  position: absolute;
  right: 10px;
  top: 25px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Mantiene alineado el ícono */
}

.password-container i:hover {
  color: #007bff;
}

.submit {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit:hover {
  background-color: #0056b3;
}

/* colores de los botones */
.btn-success {
  background-color: white;
  color: black;
  border: 2px solid #218838;
}

.btn-success:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
  background-color: white;
  color: black;
  border: 2px solid #c82333;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: white;
  color: black;
  border: 2px solid #0069d9;
}

.btn-primary:hover {
  background-color: #0069d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* Estilo para el mensaje de error */
.error-message {
  color: red;
  font-size: 14px;
  display: block;
  margin-top: 5px;
  text-align: left;
  white-space: normal; /* Evita cortes de línea innecesarios */
  width: 100%;
  max-width: 100%;
  word-wrap: break-word; /* Permite que el texto se ajuste */
}

/* Estilo para el enlace de volver */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.volver-link {
  text-decoration: none;
  color: #007bff;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
}

.volver-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

/* Separa los botones para que no se vean pegados */
.container-btn {
  display: flex;
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 10px; 
  width: 100%; 
  margin-top: 15px; 
}

.container-btn button {
  margin: 8px;
  min-width: 120px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
}


.container-btn button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container-btn > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
}
