/* ============================================================
   FeedBacko.me — business-login.css (views #13 + #14)
   Shared `af-*` auth-form look (also used by register + claim):
   centered card on a subtle canvas, hand-built fields (DS.Input
   has no password/email type). Tokens only.
   ============================================================ */

.af-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--gutter);
  background: var(--surface-subtle);
}
.af-brand {
  display: inline-flex;
  text-decoration: none;
}
.af-brand .fbk-wordmark { font-size: var(--text-2xl); }

.af-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-7);
  box-shadow: var(--shadow-sm);
}
.af-foot {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
}
.af-foot a { font-weight: var(--weight-semibold); }

.af-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-2);
}
.af-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-6);
}

/* ---- Fields ---- */
.af-field { display: block; margin-bottom: var(--space-4); }
.af-label {
  display: block;
  font-size: 12.5px;
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.af-input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}
.af-input:focus-visible {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-focus);
}
.af-input--bad { border-color: var(--red-600); }
.af-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 5px;
  line-height: var(--leading-normal);
}
textarea.af-input {
  height: auto;
  min-height: 88px;
  padding: 11px 14px;
  line-height: var(--leading-relaxed);
  resize: vertical;
}

/* ---- Errors ---- */
.af-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--red-600);
  margin: 0 0 var(--space-4);
}
.af-error svg { flex: none; }

/* ---- Buttons ---- */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--text-inverse);
  font-size: 14.5px;
  font-weight: var(--weight-bold);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}
.af-btn:hover { background: var(--button-primary-bg-hover); text-decoration: none; }
.af-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.af-btn--link { text-align: center; }
.af-btn--ghost {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.af-btn--ghost:hover { background: var(--gray-50); }

.af-link-btn {
  display: block;
  width: 100%;
  margin-top: var(--space-4);
  background: none;
  border: none;
  color: var(--text-link);
  font-size: 13.5px;
  font-weight: var(--weight-semibold);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.af-link-btn:hover { text-decoration: underline; }

/* ---- Status marks ---- */
.af-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-circle);
  margin-bottom: var(--space-4);
  background: var(--surface-brand-tint);
  color: var(--green-900);
}
.af-mark--good { background: var(--surface-brand-tint); color: var(--green-800); }

/* ---- Unit chooser ---- */
.af-units { display: flex; flex-direction: column; gap: var(--space-2); }
.af-unit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.af-unit:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); text-decoration: none; }
.af-unit-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-black);
  font-size: 15px;
}
.af-unit-body { flex: 1; min-width: 0; }
.af-unit-name { display: block; font-size: 14px; font-weight: var(--weight-bold); }
.af-unit-domain { display: block; font-size: 12px; color: var(--text-tertiary); }
.af-unit-go { flex: none; color: var(--text-tertiary); display: flex; }

@media (max-width: 460px) {
  .af-card { padding: var(--space-7) var(--space-5); }
}
