/* Pantallas de auth de mastercalc (login, registro, recuperar, restablecer y
   cambiar contraseña). Antes iba como <style> en línea en auth.html (T9.8). */

.auth-section {
  padding: 2.5rem 1rem 4rem;
}

.auth-card {
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.auth-card .title {
  margin-bottom: 0.35rem;
}

.auth-sub {
  color: #5e6266;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.auth-card .notification {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.auth-regla {
  color: #5e6266;
  background: #f5f7f7;
  border-left: 3px solid hsl(171, 100%, 41%);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0 6px 6px 0;
}

/* Formulario de py4web (FormStyleBulma) */
.auth-card form .field:not(:last-child) {
  margin-bottom: 1rem;
}

.auth-card form .label {
  font-weight: 600;
}

/* El tema `micss` deja los inputs sin borde: sobre la tarjeta blanca no se verían. */
.auth-card form .input {
  background: #fff;
  border: 1px solid #c9cfd2;
  border-radius: 6px;
  box-shadow: none;
  padding: 0.55rem 0.75rem;
  height: auto;
}

.auth-card form .input:focus,
.auth-card form .input:focus-visible {
  border-color: hsl(171, 100%, 41%);
  box-shadow: 0 0 0 3px hsla(171, 100%, 41%, 0.2);
  outline: none;
}

.auth-card form .input.is-danger {
  border-color: #e0245e;
}

.auth-card form .help.is-danger {
  margin-top: 0.35rem;
}

.auth-card form .checkbox {
  line-height: 1.4;
}

.auth-card form input[type="submit"],
.auth-card form button[type="submit"] {
  min-width: 11rem;
}

/* Captcha ALTCHA: justo encima del botón, alineado con los campos */
.auth-captcha {
  margin: 1.25rem 0 1rem;
}

.auth-captcha altcha-widget {
  display: block;
  max-width: 17rem;
  --altcha-border-radius: 6px;
  --altcha-color-border: #dbdbdb;
  --altcha-color-border-focus: hsl(171, 100%, 41%);
}

/* Enlaces secundarios (sustituyen al sidecar de py4web) */
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ededed;
}

.auth-links a {
  color: hsl(171, 100%, 31%);
  font-weight: 500;
}

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

.auth-legal {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6a6e72;
}

.auth-legal p + p {
  margin-top: 0.5rem;
}

@media (max-width: 520px) {
  .auth-section {
    padding: 1.25rem 0.75rem 3rem;
  }

  .auth-card {
    padding: 1.4rem 1.1rem;
  }

  .auth-card form input[type="submit"],
  .auth-card form button[type="submit"] {
    width: 100%;
  }
}
