/**
 * Agend Member Login widget styles.
 *
 * Colour tokens are set inline on .agend-member-login by the widget from the
 * Elementor colour controls (--agend-ml-*).
 */

.agend-member-login {
  --agend-ml-heading: #1e2a4a;
  --agend-ml-body: #26304d;
  --agend-ml-button: #ff6b55;
  --agend-ml-button-text: #ffffff;
}

.agend-ml-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
}

.agend-ml-card__heading {
  margin: 0;
  color: var(--agend-ml-heading);
  font-size: 1.25rem;
  line-height: 1.3;
}

.agend-ml-card__text {
  margin: 0;
  color: var(--agend-ml-body);
}

.agend-ml-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agend-ml-form__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--agend-ml-body);
  font-size: 0.875rem;
}

.agend-ml-form__input {
  padding: 0.5rem 0.625rem;
  border: 1px solid rgba(38, 48, 77, 0.25);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.agend-ml-form__input:focus {
  outline: 2px solid var(--agend-ml-button);
  outline-offset: 1px;
}

.agend-ml-form__error {
  margin: 0;
  color: #c0392b;
  font-size: 0.875rem;
}

.agend-ml-card__button {
  display: inline-block;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.375rem;
  background: var(--agend-ml-button);
  color: var(--agend-ml-button-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.agend-ml-card__button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Scoped to element + classes so Elementor kits' global `button` styles
   (e.g. `.elementor-kit-N button`) cannot repaint these text links as
   solid buttons. */
.agend-member-login button.agend-ml-card__link,
.agend-member-login a.agend-ml-card__link {
  align-self: flex-start;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--agend-ml-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.agend-member-login button.agend-ml-card__link:hover,
.agend-member-login a.agend-ml-card__link:hover {
  color: var(--agend-ml-heading);
  background: none;
}

.agend-member-login button.agend-ml-card__link:focus-visible,
.agend-member-login a.agend-ml-card__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Password recovery (SPEC-CORE-20260722 US-2.7). */
.agend-ml-form__forgot {
  margin-top: 0.25rem;
  align-self: flex-start;
  padding: 0;
  font-size: 0.875rem;
}

.agend-ml-form__notice {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(46, 160, 67, 0.08);
  color: #1a7f37;
  font-size: 0.9375rem;
}
