/**
 * Auth by Email - sign-in form
 *
 * Loaded by [abe_login_form] shortcode and by the wp-login.php replacement.
 * Self-contained card. References tokens from 00-tokens.css.
 */

.abe-card {
  font-family: var(--abe-font-body);
  color: var(--abe-ink);
  background: var(--abe-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  min-height: 100%;
}

.abe-card__inner {
  background: var(--abe-card);
  border: 1px solid var(--abe-rule);
  border-radius: var(--abe-radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--abe-shadow);
}

.abe-card__title {
  font-family: var(--abe-font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: var(--abe-ink);
}

.abe-card__sub {
  font-size: 14.5px;
  color: var(--abe-muted);
  margin: 0 0 28px 0;
  line-height: 1.5;
}

.abe-form { display: flex; flex-direction: column; }

.abe-label {
  font-family: var(--abe-font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--abe-muted);
  margin-bottom: 6px;
}

.abe-input {
  border: 1px solid var(--abe-rule);
  border-radius: var(--abe-radius-sm);
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--abe-font-body);
  background: var(--abe-bg);
  color: var(--abe-ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}

.abe-input:focus {
  outline: none;
  border-color: var(--abe-accent);
  background: var(--abe-card);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.abe-btn {
  margin-top: 16px;
  background: var(--abe-accent);
  color: var(--abe-accent-fg);
  border: 0;
  border-radius: var(--abe-radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--abe-font-body);
  cursor: pointer;
  transition: opacity .15s, transform .05s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.abe-btn:hover { opacity: 0.92; }
.abe-btn:active { transform: translateY(1px); }
.abe-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.abe-btn__spin {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: abe-spin .8s linear infinite;
}

.abe-form[data-state="loading"] .abe-btn__spin { display: inline-block; }
.abe-form[data-state="loading"] .abe-btn__label { opacity: 0.7; }

@keyframes abe-spin {
  to { transform: rotate(360deg); }
}

.abe-msg {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.abe-msg--ok  { background: #e6f0e6; border-color: var(--abe-ok); color: #1f3a2a; }
.abe-msg--err { background: #f8e8e4; border-color: var(--abe-err); color: #5c2a22; }

.abe-sent {
  text-align: center;
  padding: 8px 0;
}

.abe-sent__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6f0e6;
  color: var(--abe-ok);
  margin: 0 auto 20px auto;
}

.abe-sent__title {
  font-family: var(--abe-font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  color: var(--abe-ink);
}

.abe-sent__msg {
  font-size: 14.5px;
  color: var(--abe-ink-soft);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.abe-sent__hint {
  font-size: 13px;
  color: var(--abe-muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.abe-link {
  background: none;
  border: 0;
  color: var(--abe-accent);
  font-family: var(--abe-font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.abe-link:hover { text-decoration: underline; }
