/* ================================
   AUTH PAGES (login & registro)
   ================================ */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%; /* asegura que ambos ocupan todo */
  width: 100%; /* asegura ancho completo */
  background: #000; /* fallback por si falla la imagen */
}

.auth-wrapper {
  min-height: 100vh;
  min-width: 99vw;
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: url("/static/img/Fondo 2.png") no-repeat center center / cover;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-y: hidden;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Logo centrado y semitransparente */
.auth-wrapper::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 1500px;
  height: 1500px;
  background-image: url("/static/img/Integra_gris.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.auth-wrapper h1 {
  position: relative;
  z-index: 2;
  color: #d2d2d2;
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.auth-wrapper h2,
h3 {
  color: #d45725;
  z-index: 2;
}

.auth-wrapper p,
li {
  z-index: 2;
  color: #6e6e6e;
}
.texto_legal {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: left;
}
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(210, 210, 210, 0.9);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.auth-card h2 {
  margin: 0 0 15px 0;
  font-size: 2rem;
  font-weight: 600;
}
.auth-card label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: #273f4f;
  margin: 15px 0 5px 3px;
}
.auth-card input,
.auth-card select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #273f4f;
  transition: all 0.2s ease-in-out;
  width: 90%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  resize: none;
  overflow-y: auto;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: #d7d7d7;
  box-shadow: 0 0 0 2px #d2d2d2;
}

.auth-card button {
  width: 100%;
  padding: 12px;
  margin-top: 30px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
body.login-page .auth-card h2 {
  color: #d45725;
}
body.login-page .auth-card button {
  background: #d45725;
  color: #fff;
  outline: 2px solid #fff;
}
body.login-page .auth-card button:hover {
  background: #fff;
  color: #d45725;
  outline: 2px solid #d45725;
}
body.register-page .auth-card h2 {
  color: #447d9b;
}
body.register-page .auth-card button {
  background: #447d9b;
  color: #fff;
  outline: 2px solid #fff;
}
body.register-page .auth-card button:hover {
  background: #fff;
  color: #447d9b;
  outline: 2px solid #447d9b;
}
.errores {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #d45725;
  text-align: center;
}
.errores p {
  margin: 5px 0;
}
.auth-card a {
  color: #273f4f;
  font-size: 0.8rem;
}
.auth-card a:hover {
  color: #d45725;
}
