/* Contenedor de página: ocupa alto completo y centra el panel */
.main{
  min-height: 100dvh; /* mejor que 100vh en móviles con barras */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px; /* “respira” alrededor, útil con header fijo */
  background-color: transparent;
}

/* Tarjeta del login */
.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 y sin “zoom” en iOS (>=16px) */
input[type="text"],input[type="email"],
input[type="password"] {
  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[type="text"]:focus,
input[type="password"]: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); }

/* Enlace auxiliar */
.link {
  margin-top: 14px;
  text-align: center;
  font-size: 1.4rem;
}
.link a { color: #007bff; text-decoration: none; }
.link a:hover { text-decoration: underline; }

/* Links en una sola línea */
.links-inline {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  text-align: center;
  flex-wrap: wrap; /* por si en móvil no cabe */
}

.links-inline a {
  color: #007bff;
  text-decoration: none;
}

.links-inline a:hover {
  text-decoration: underline;
}

.links-inline .separator {
  color: #999;
}

.info-message {
  margin-top: 14px;
  font-size: 1.5rem;
  line-height: 1.4;
  text-align: center;
  color: #555;
  background-color: #f4f6f8;
  padding: 10px 12px;
  border-radius: 8px;
}



/* RESPONSIVE */
@media (max-width: 480px) {
  .container {
    padding: 24px;
    max-width: 92%;
    border-radius: 10px;
  }
  h1 { font-size: 2rem; }
  button { font-size: 1.5rem; }
}

/* Reduce motion para quien lo prefiera */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
