/* Estilos mínimos para las plantillas de autenticación pública
   (login, registro, recuperar/cambiar contraseña). Cargado únicamente por
   esas plantillas vía {% block extra_head %} — no toca static/css/styles.css
   (copia de la maqueta, se mantiene intacta). Usa los tokens de paleta ya
   definidos en styles.css (:root). */

.form-field {
  width: 100%;
  padding: 11px 13px;
  margin: 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.form-field:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 1px;
}

.form-error {
  color: #8f1f1f;
  background: #fdecec;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .8rem;
}

.auth-card label {
  display: block;
  font-size: .8rem;
  font-weight: 650;
  color: var(--navy-900);
}

/* Cubre los widgets nativos de Django (AuthenticationForm, PasswordResetForm,
   SetPasswordForm, PasswordChangeForm) que no reciben class="form-field"
   (eso solo lo hace RegistroForm) sin tener que tocar esos forms. */
.auth-card input:not([type="hidden"]),
.auth-card select {
  width: 100%;
  padding: 11px 13px;
  margin: 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.auth-card input:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 1px;
}

/* Página /cuenta/acceder/: reutiliza el panel visual del modal del equipo
   (.login-panel.auth-panel) rendered estático. En styles.css (intacto) casi
   todo el estilo del formulario está scoping bajo .auth-modal; estas reglas
   replican ese mismo look bajo .auth-page sin tocar styles.css. */
.auth-page .login-panel { width: min(940px, 100%); }
.auth-page .login-form { gap: 16px; padding: 0; }
.auth-page .login-form > label,
.auth-page .login-form .auth-field-row label { display: block; color: #36404f; font-size: .72rem; font-weight: 800; letter-spacing: 0; }
.auth-page .auth-label__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-page .login-form .auth-field__control input { margin: 0; padding: 13px 14px 13px 43px; background: white; border-color: #e2e7ee; border-radius: 12px; font-size: .86rem; }
.auth-page .login-form .auth-field__control input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,.13); }
.auth-page .login-form > .button { min-height: 48px; display: flex; justify-content: center; gap: 10px; margin-top: 3px; background: var(--blue-600); border-color: var(--blue-600); border-radius: 12px; box-shadow: 0 10px 24px rgba(37,99,235,.22); }
.auth-page .login-form > .button:hover { background: var(--navy-800); border-color: var(--navy-800); }
.auth-page .login-form > .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.auth-page .login-form > .button:hover svg { transform: translateX(3px); }
.auth-page .auth-panel__switch { justify-self: center; margin-top: -2px; padding: 2px 6px; color: #6b788c; font-size: .72rem; text-align: center; }
.auth-page .auth-panel__switch strong { color: var(--blue-600); font-weight: 750; }
.auth-page .auth-panel__switch:hover { color: var(--navy-950); text-decoration: underline; }
.auth-page .login-form__status.is-error { color: #dc2626; font-weight: 650; }
@media (max-width: 860px) {
  .auth-page .login-panel { grid-template-columns: 1fr; }
}
