/* Página: ocupa alto completo y centra el panel bajo el header */
.main {
  min-height: 100dvh;             /* mejor que 100vh en móviles con barras */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;                  /* respiración alrededor (header/pie) */
  background-color: transparent;
}

/* Tarjeta del registro */
.container {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  width: 100%;
  max-width: 420px;
}

/* Tipografías y jerarquía */
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 2.2rem;
  line-height: 1.2;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.4rem;
}

label {
  display: block;
  margin-top: 14px;
  color: #555;
  font-size: 1.4rem;
}

/* Inputs: tamaño táctil (>=16px) evita zoom en iOS */
input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.2;
  background-color: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input:focus {
  outline: none;
  border-color: var(--colorPrincipal_4);
  box-shadow: 0 0 0 3px rgba(120,185,197,.25);
}

/* Botón */
button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: var(--colorPrincipal_4);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background-color .15s ease, transform .05s ease;
}
button:hover { background-color: var(--colorPrincipal_6); }
button:active { transform: scale(.99); }

/* Enlaces auxiliares */
.link {
  margin-top: 14px;
  text-align: center;
  font-size: 1.4rem;
}
.link a { color: #007bff; text-decoration: none; }
.link a:hover { text-decoration: underline; }

.password-wrap{
  position: relative;
}

.password-wrap .toggle-pass{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  margin-top: 0;
  padding: 6px 10px;
  font-size: 14px;
  background: transparent;
  color: #555;
}

.password-wrap .toggle-pass:hover{
  background: rgba(0,0,0,0.05);
}


/* Mensaje de verificación */
#verificacion_mensaje { font-size: 1.4rem; }

/* Responsive fino */
@media (max-width: 480px) {
  .container { padding: 24px; max-width: 92%; border-radius: 10px; }
  h1 { font-size: 2rem; }
  button { font-size: 1.5rem; }
}

/* Respeto a reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
