/* === Fondo institucional y base === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #ffc4ec, #ffddb0, #d3c5f2);
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* === Contenedor del formulario === */
.contenedor-formulario {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contenedor-formulario h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #9e00ad;
}

/* === Campos de formulario === */
.form-uda label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #555;
}

.form-uda input[type="text"],
.campo-clave {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.form-uda input[type="text"]:focus,
.campo-clave:focus {
  outline: none;
  border-color: #9e00ad;
}

/* === Botón === */
.form-uda button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.8rem;
  background-color: #9e00ad;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-uda button:hover {
  background-color: #7d0091;
}

/* === Campo con ojito para contraseña === */
.wrapper-password {
  position: relative;
}

.wrapper-password input {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #8e44ad;
  user-select: none;
}

/* === Mensajes visuales === */
.mensaje-exito {
  color: #2e7d32;
  font-weight: bold;
  margin-top: 1rem;
  text-align: center;
}

.mensaje-error {
  color: #c0392b;
  font-weight: bold;
  margin-top: 1rem;
  text-align: center;
}