* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: linear-gradient(90deg, rgba(255, 223, 186, 0.9), rgba(255, 183, 77, 0.9)), 
  url("/static/img/Sabrosuras_del_Huila.jpg");
  background-size: cover;
  background-position: center;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 468px){
    body {
      height: 91.5vh;  
    }
}

.form-register {
  width: 420px;
  background: rgba(255, 250, 205, 0.95);
  padding: 20px 40px; 
  border-radius: 15px;
  box-shadow: 5px 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 2px solid #f4c542; 
}

.form-register h4 {
  font-size: 28px;
  font-weight: bold;
  padding-top: 20px; 
  margin-bottom: 30px; 
  color: #d4a017; 
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 18px; 
  margin-bottom: 30px;
}

.input-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.input-box label {
  font-weight: bold;
  color: #8b6f21;
  margin-bottom: 6px;
}

.input-box input {
  width: 100%;
  padding: 14px;
  padding-right: 40px;
  border-radius: 10px;
  border: 1px solid #e1b12c;
  font-size: 16px;
  color: black;
  background: #fff8dc; 
  transition: all 0.3s ease-in-out;
}

.input-box input:focus {
  border: 1px solid #d4a017;
  outline: none;
  background: #fff2c9; 
  box-shadow: 0 0 5px rgba(212, 160, 23, 0.5);
}

/* Estilos para la validación de contraseña */
.password-container {
  position: relative;
}

.password-requirements {
  display: none;
  list-style-type: none;
  padding: 10px;
  margin-top: 5px;
  background: #fff8dc;
  border-radius: 8px;
  border: 1px solid #e1b12c;
  font-size: 12px;
  color: #555;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.password-requirements li {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.password-requirements li:before {
  content: "•";
  color: #e1b12c;
  margin-right: 5px;
}

.password-requirements li.valid {
  color: #4CAF50;
}

.password-requirements li.valid:before {
  content: "✓";
  color: #4CAF50;
}

/* Indicador de coincidencia de contraseña */
.password-match {
  margin-top: 5px;
  font-size: 12px;
  display: none;
}

.password-match.valid {
  color: #4CAF50;
  display: block;
}

.password-match.invalid {
  color: #f44336;
  display: block;
}

/* Mensajes de error */
.messages {
  margin-bottom: 20px;
  text-align: center;
}

.error-message {
  color: red;
  font-size: 14px;
  font-weight: bold;
  background: rgba(255, 0, 0, 0.1);
  padding: 8px;
  border-radius: 5px;
  display: block;
  margin-bottom: 10px;
}

.terms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 25px;
}

.terms input {
  width: 18px;
  height: 18px;
}

.terms a {
  color: #d4a017;
  font-weight: bold;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.botons {
  width: 100%;
  background: #f4c542;
  border: none;
  padding: 14px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s, transform 0.2s;
}

.botons:hover {
  background: #d4a017;
  transform: scale(1.05);
}

.login-link {
  margin-top: 20px;
}

.login-link a {
  text-decoration: none;
  color: #d4a017;
  font-weight: bold;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Icono de ojo para mostrar/ocultar contraseña - Versión simplificada */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #8b6f21;
  font-size: 18px;
  background: none;
  border: none;
  padding: 0;
}

.toggle-password:hover {
  color: #d4a017;
}

.password-field {
  position: relative;
}