/*
 * Forenses.net — login.css
 * Estiliza wp-login.php (Acceso, Registro, Recuperar contraseña)
 * con la identidad visual del theme.
 */

body.login {
  background: var(--surface-1, #f6f7fb) !important;
  font-family: 'Courier Prime', 'JetBrains Mono', monospace !important;
}

/* Logo */
body.login #login h1 a {
  background-image: var(--login-logo, none);
  width: 100%;
  height: 80px;
  background-size: contain;
  background-position: center;
  margin-bottom: 1.5rem;
}

/* Tarjeta central */
body.login #login {
  width: 380px;
  padding: 0;
}
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
  background: #fff;
  border: 1px solid #e2e6f0;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 32px rgba(47,101,185,.1);
}

/* Etiquetas y campos */
body.login label {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2c2f38;
  margin-bottom: .4rem;
  display: block;
}
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  width: 100%;
  border: 2px solid #e2e6f0 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-size: 15px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  box-shadow: none !important;
  transition: border-color .18s;
}
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-color: #2f65b9 !important;
  box-shadow: 0 0 0 3px rgba(47,101,185,.1) !important;
}

/* Botón de acceso/registro */
body.login .button-primary,
body.login #wp-submit {
  width: 100%;
  background: #2f65b9 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 0 !important;
  height: auto !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background .18s;
}
body.login .button-primary:hover,
body.login #wp-submit:hover { background: #1e4a8a !important; }

/* Checkbox "Recuérdame" */
body.login .forgetmenot { font-family: 'Inter', sans-serif; font-size: 13px; color: #5a5f6e; }

/* Enlaces inferiores */
body.login #nav,
body.login #backtoblog {
  text-align: center;
  margin-top: 1.25rem;
}
body.login #nav a,
body.login #backtoblog a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #5a5f6e;
  text-decoration: none;
}
body.login #nav a:hover,
body.login #backtoblog a:hover { color: #2f65b9; }

/* Mensajes de error/éxito */
body.login #login_error,
body.login .message,
body.login .success {
  border-radius: 10px;
  border-left: 4px solid #2f65b9;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  box-shadow: none;
}
body.login #login_error {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

/* Recuadro de registro (checkbox de privacidad, etc.) */
body.login p.privacy-policy-page-link { text-align: center; font-size: 12px; }

/* ═══════════════════════════════════════════════════════
 * FORMULARIO DE LOGIN INCRUSTADO (ej. dentro del foro,
 * cuando bbPress muestra wp_login_form() en una página normal,
 * no en wp-login.php). Mismo estilo, distinto contexto.
 * ═══════════════════════════════════════════════════════ */
.login form:not(.woocommerce-form),
form.standard-form,
#bbpress-forums form#loginform {
  background: #fff;
  border: 1px solid var(--border, #e2e6f0);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 380px;
  box-shadow: 0 4px 20px rgba(47,101,185,.06);
}
#bbpress-forums form#loginform label,
form.standard-form label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-2, #2a2d36);
  display: block;
  margin-bottom: .4rem;
}
#bbpress-forums form#loginform input[type="text"],
#bbpress-forums form#loginform input[type="password"],
form.standard-form input[type="text"],
form.standard-form input[type="password"] {
  width: 100%;
  border: 2px solid var(--border, #e2e6f0) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-family: var(--reading, 'Inter', sans-serif) !important;
  font-size: 14px !important;
  margin-bottom: 1rem;
}
#bbpress-forums form#loginform input[type="submit"],
form.standard-form input[type="submit"] {
  background: var(--blue, #2f65b9) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 24px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px !important;
  cursor: pointer;
}
