/* ============================================================
   ResellerClub — shared Auth component.
   One card pattern, reused for every entry into an account:
   reseller signup, demo signup, sign in, password recovery.
   Link AFTER resellerclub-ds/styles.css and site/site.css.
   ============================================================ */

/* ---- slim auth header (logo only, not the marketing nav) ---- */
.auth-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--rc-line); }
.auth-top .auth-top-inner { display: flex; align-items: center; height: 64px; }
.auth-top .logo { display: inline-flex; align-items: center; gap: 10px; }
.auth-top .logo img { width: 30px; height: 30px; }
.auth-top .logo .name { font-family: var(--rc-font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--rc-text); }
.auth-top .back { margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--rc-text-3); }
.auth-top .back:hover { color: var(--rc-text); }

/* ---- stage: centered card on a light surface with a soft radial glow ---- */
.auth-stage { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: flex-start;
  justify-content: center; padding: 64px 24px 96px; overflow: hidden; background: var(--rc-bg); }
.auth-stage::before { content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 860px; height: 620px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, rgba(109,94,246,.16), rgba(109,94,246,0) 70%); }
.auth-shell { position: relative; width: 100%; max-width: 440px; }

/* ResellerClub mark above the card */
.auth-brand { display: flex; justify-content: center; margin: 0 0 22px; }
.auth-brand .logo { display: inline-flex; align-items: center; gap: 10px; }
.auth-brand .logo img { width: 32px; height: 32px; }
.auth-brand .logo .name { font-family: var(--rc-font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--rc-text); }

/* ---- the card ---- */
.auth-card { background: #fff; border: 1px solid var(--rc-line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16,21,31,.04), 0 18px 42px -18px rgba(20,28,48,.28);
  padding: 32px 32px 28px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .eyebrow { display: block; font-size: 11.5px; }
.auth-card h1 { font-family: var(--rc-font-display); font-weight: 700; font-size: 25px;
  letter-spacing: -.02em; color: var(--rc-text); line-height: 1.14; margin: 11px 0 0; }
.auth-card .sub { font-size: 14.5px; line-height: 1.55; color: var(--rc-text-2); margin: 9px 0 0; }

/* ---- provider buttons (stacked, full width, brand glyph) ---- */
.auth-providers { display: flex; flex-direction: column; gap: 10px; }
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: var(--rc-font-body); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 12px 16px; border-radius: var(--rc-r-md); cursor: pointer;
  background: #fff; color: var(--rc-text); border: 1px solid var(--rc-line-strong);
  box-shadow: var(--rc-shadow-xs); transition: all var(--rc-dur) var(--rc-ease); }
.auth-provider:hover { background: var(--rc-bg-subtle); border-color: var(--rc-text-3); }
.auth-provider svg, .auth-provider img { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- divider ---- */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--rc-line); }
.auth-divider span { font-size: 12.5px; color: var(--rc-text-3); font-weight: 500; white-space: nowrap; }

/* ---- fields ---- */
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: var(--rc-text); margin-bottom: 6px; }
.auth-input { position: relative; }
.auth-input input { width: 100%; font-family: var(--rc-font-body); font-size: 15px; color: var(--rc-text);
  padding: 11px 14px; border: 1px solid var(--rc-line-strong); border-radius: var(--rc-r-md);
  background: #fff; transition: border-color var(--rc-dur) var(--rc-ease), box-shadow var(--rc-dur) var(--rc-ease); }
.auth-input input::placeholder { color: var(--rc-text-3); }
.auth-input input:focus { outline: none; border-color: var(--rc-accent);
  box-shadow: 0 0 0 3px rgba(109,94,246,.16); }
.auth-input .reveal { position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--rc-text-3); padding: 7px; display: inline-flex;
  border-radius: var(--rc-r-sm); }
.auth-input .reveal:hover { color: var(--rc-text); background: var(--rc-bg-subtle); }
.auth-input.has-reveal input { padding-right: 42px; }

/* ---- row: remember + forgot ---- */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.auth-check input { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; margin: 1px 0 0;
  flex-shrink: 0; border: 1px solid var(--rc-line-strong); border-radius: 5px; background: #fff;
  cursor: pointer; position: relative; transition: all var(--rc-dur) var(--rc-ease); }
.auth-check input:checked { background: var(--rc-accent); border-color: var(--rc-accent); }
.auth-check input:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(109,94,246,.16); }
.auth-check .ctext { font-size: 13px; line-height: 1.45; color: var(--rc-text-2); }
.auth-check .ctext a { color: var(--rc-accent-700); font-weight: 600; }
.auth-check .ctext a:hover { color: var(--rc-accent-600); }
.auth-forgot { font-size: 13px; font-weight: 600; color: var(--rc-accent-700); white-space: nowrap; cursor: pointer; }
.auth-forgot:hover { color: var(--rc-accent-600); }

/* consent block (signup) sits above the submit */
.auth-consent { margin: 4px 0 18px; }

/* ---- submit ---- */
.auth-submit { width: 100%; justify-content: center; }
.auth-submit + .auth-micro { margin-top: 20px; }
.auth-micro { display: flex; align-items: flex-start; justify-content: center; gap: 6px;
  font-size: 13px; line-height: 1.5; color: var(--rc-text-3); text-align: center; margin: 14px 0 0; }
.auth-micro span { font-size: 13px; line-height: 1.5; }
.auth-micro i,
.auth-micro svg { width: 13px !important; height: 13px !important; flex-shrink: 0; margin-top: 2px; color: var(--rc-text-3); }

/* ---- card footer cross-links ---- */
.auth-foot { text-align: center; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rc-line); }
.auth-foot p { font-size: 13px; color: var(--rc-text-2); margin: 0; }
.auth-foot p + p { margin-top: 7px; }
.auth-foot a { font-size: 13px; color: var(--rc-accent-700); font-weight: 600; cursor: pointer; }
.auth-foot a:hover { color: var(--rc-accent-600); }

/* trust strip under the card */
.auth-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin: 22px 0 0; font-size: 13px; color: var(--rc-text-3); }
.auth-trust .dot-sep { color: var(--rc-line-strong); }
.auth-trust i { width: 14px; height: 14px; vertical-align: -2px; color: var(--rc-accent); margin-right: 3px; }

/* ---- variant switcher (prototype aid; demonstrates the one shared component) ---- */
.auth-switch { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 5px; background: rgba(16,14,43,.92);
  backdrop-filter: blur(8px); border-radius: var(--rc-r-pill); box-shadow: var(--rc-shadow-lg); }
.auth-switch .lbl { font-family: var(--rc-font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rc-on-dark-3); padding: 0 8px 0 10px; }
.auth-switch button { font-family: var(--rc-font-body); font-size: 12.5px; font-weight: 600; color: var(--rc-on-dark-2);
  background: transparent; border: 0; padding: 7px 13px; border-radius: var(--rc-r-pill); cursor: pointer;
  transition: all var(--rc-dur) var(--rc-ease); white-space: nowrap; }
.auth-switch button:hover { color: #fff; }
.auth-switch button.on { background: var(--rc-accent); color: #fff; }

/* state-change animation — transform-only so screenshot/print capture never lands on a hidden frame */
@media (prefers-reduced-motion: no-preference) {
  .auth-card.swap { animation: auth-swap-in .26s var(--rc-ease); }
}
@keyframes auth-swap-in { from { transform: translateY(6px); } to { transform: none; } }

@media (max-width: 520px) {
  .auth-card { padding: 26px 22px 24px; }
  .auth-switch { flex-wrap: wrap; max-width: calc(100vw - 24px); justify-content: center; }
  .auth-switch .lbl { display: none; }
}
