﻿/* =====================================================================
   Sign-up card + form  (mirrors .refgate)
   ===================================================================== */
.aff-card {
  padding: clamp(22px, 3.4vw, 30px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--green-line);
  box-shadow: var(--shadow);
}
[data-theme="light"] .aff-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.aff-card__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.aff-card__title { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 10px; }
.aff-card__lead {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.aff-step { display: block; }
.aff-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
/* Labels that follow a field need air above them. */
.aff-input + .aff-label,
.aff-rail + .aff-label,
div + .aff-label { margin-top: 16px; }
.aff-opt { color: var(--muted); font-weight: 500; }
.aff-echo { color: var(--accent-ink); overflow-wrap: anywhere; }

.aff-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 13px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
[data-theme="light"] .aff-input { background: var(--bg); }
.aff-input::placeholder { color: var(--muted); opacity: .7; }
.aff-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 133, 90, .18);
}
.aff-input--upper { text-transform: uppercase; }
.aff-input--upper::placeholder { text-transform: none; }
.aff-input--otp {
  font-family: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 1.35rem;
  letter-spacing: .35em;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}
.aff-input--otp::placeholder { letter-spacing: .35em; }

.aff-step .btn--block { margin-top: 16px; margin-bottom: 12px; }
.aff-step .btn[disabled],
.aff-panel .btn[disabled] { opacity: .6; pointer-events: none; }

.aff-fine {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}
.aff-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.aff-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-ink);
  cursor: pointer;
}
.aff-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.aff-link[disabled] { opacity: .6; cursor: default; text-decoration: none; }

/* ---------- Messages (error / info / success) ----------
   Error is the default state: the loud one should be the one you get by
   accident, not the one you have to remember to ask for. */
.aff-msg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .85rem;
  line-height: 1.55;
  color: #E2B4B4;
  background: rgba(197, 48, 48, .10);
  border: 1px solid rgba(197, 48, 48, .28);
}
[data-theme="light"] .aff-msg { color: #9B2C2C; background: #FDF0F0; border-color: #F0C9C9; }
.aff-msg.is-info,
.aff-msg.is-ok {
  color: var(--accent-ink);
  background: var(--green-tint);
  border-color: var(--green-line);
}
.aff-retry { margin-top: 12px; }

