
/* Box model consistente */
* {
  box-sizing: border-box;
}

/* Fondo con imagen */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../img/fondologin.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #fff;
}

.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenedor para cualquier formulario */
.form-box, .form-container {
  background: rgba(31, 31, 31, 0.85);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
}

/* Logo */
.logo {
  width: 100px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #ffffff;
}

/* Inputs y botones */
input, button, select, textarea {
  width: 100%;
  display: block;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
  font-size: 15px;
}

input, select, textarea {
  background: #333;
  color: #fff;
}

button {
  background-color: #00a88f;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #008f77;
}

/* Campo de contraseña con ícono de ojo */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
  transition: color 0.3s ease, transform 0.3s ease;
}

.toggle-password:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

.toggle-password.visible {
  color: #00a88f;
}

/* Enlaces */
.links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  color: #00a88f;
  text-decoration: none;
}

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

/* Footer */
.footer {
  text-align: center;
  color: #aaa;
  font-size: 0.85em;
  padding: 15px 10px;
  background: #0a0a0a;
}

/* Responsive */
@media (max-width: 480px) {
  .form-box, .form-container {
    padding: 20px;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }
}
