/* ======================================================================
   SearchDaddy — auth pages (sign in / register / reset / invite).
   The marigold marketing brand (DESIGN.md): warm white, marigold #FFB01F,
   Archivo, soft shadows, pill buttons — so first touch matches the public
   site and the dashboard. Scoped under html.auth-brand so it shares nothing
   with the operator admin.css. Reuses the existing blade class names.
   ====================================================================== */
html.auth-brand {
  --paper: #FFFFFF; --wash: #F7F6F2; --wash2: #F1EFE8;
  --ink: #121314; --ink2: #55585E; --ink3: #8D9096;
  --mari: #FFB01F; --mari-soft: #FFF1D1; --mari-ink: #7A4E00;
  --line: rgba(18, 19, 20, .09); --line2: rgba(18, 19, 20, .16);
  --good: #2F7D4F; --good-bg: #E7F3EC; --bad: #C2412B; --bad-bg: #FBECE8;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --shadow: 0 1px 2px rgba(18, 19, 20, .04), 0 8px 24px -12px rgba(18, 19, 20, .14);
  --shadow-lift: 0 2px 4px rgba(18, 19, 20, .06), 0 16px 36px -14px rgba(18, 19, 20, .22);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html.auth-brand, .auth-brand body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Archivo, system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.auth-brand * { box-sizing: border-box; }
.auth-brand a { color: inherit; }
.auth-brand :focus-visible { outline: 3px solid var(--mari); outline-offset: 2px; border-radius: 8px; }

/* ---- Split layout ---------------------------------------------------- */
.auth-brand .page { min-height: 100vh; display: grid; grid-template-columns: 1.04fr .96fr; }

/* ---- Left stage: light, with an ambient marigold glow ---------------- */
.auth-brand .stage {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 40px clamp(32px, 4vw, 64px); background: var(--wash);
  border-right: 1px solid var(--line);
}
.auth-brand .stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(255, 176, 31, .22), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(255, 176, 31, .10), transparent 70%);
}
.auth-brand .stage > * { position: relative; }

.auth-brand .stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auth-brand .brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .brand svg, .auth-brand .brand img { height: 36px; width: auto; }
/* Letter mark (brand-mark component renders a bare "s") → marigold tile. */
.auth-brand .brand-mark { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--mari); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-stretch: 112%; font-size: 21px; line-height: 1; box-shadow: var(--shadow); }
.auth-brand .brand-mark img { height: 100%; border-radius: inherit; }
.auth-brand .brand-name { font-weight: 800; font-size: 18px; font-stretch: 108%; letter-spacing: -.01em; }
.auth-brand .brand-sub { font-size: 12.5px; color: var(--ink3); margin-top: 1px; }
.auth-brand .stage-meta { font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.auth-brand .stage-meta b { color: var(--ink2); }

.auth-brand .stage-body { margin: auto 0; padding: 32px 0; max-width: 30em; }
.auth-brand .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: var(--mari-soft); color: var(--mari-ink); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; font-stretch: 104%;
}
.auth-brand .eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mari); box-shadow: 0 0 0 0 rgba(255, 176, 31, .6); animation: auth-pulse 2s infinite; }
@keyframes auth-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 31, .55); } 70% { box-shadow: 0 0 0 7px rgba(255, 176, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 176, 31, 0); } }

.auth-brand .headline {
  margin: 0; font-weight: 900; font-stretch: 122%; letter-spacing: -.045em;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1.03;
}
.auth-brand .headline em {
  font-style: normal; background: var(--mari); color: var(--ink);
  padding: 0 .12em .03em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.auth-brand .dek { margin: 20px 0 0; font-size: 17px; color: var(--ink2); }

/* "What's inside" ticker as a soft card */
.auth-brand .ticker {
  margin-top: 30px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px 16px; box-shadow: var(--shadow); max-width: 30em;
}
.auth-brand .ticker-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 0 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3);
  border-bottom: 1px solid var(--line);
}
.auth-brand .ticker-head .ld { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.auth-brand .tk-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.auth-brand .tk-row:last-child { border-bottom: 0; }
.auth-brand .tk-row .ts { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--mari-ink); background: var(--mari-soft); border-radius: 6px; padding: 3px 7px; text-align: center; }
.auth-brand .tk-row .ev { font-size: 14px; color: var(--ink2); }
.auth-brand .tk-row .ev em { font-style: normal; font-weight: 700; color: var(--ink); }
.auth-brand .tk-row .vl { font-family: var(--mono); font-size: 11px; color: var(--ink3); }

.auth-brand .stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink3); }
.auth-brand .stage-foot a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.auth-brand .stage-foot a:hover { color: var(--ink); }

/* ---- Right form ------------------------------------------------------ */
.auth-brand .form-side { display: grid; place-items: center; padding: 40px clamp(24px, 4vw, 56px); background: var(--paper); }
.auth-brand .form-card { width: min(424px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-brand .form-h { margin: 0; font-weight: 900; font-stretch: 115%; letter-spacing: -.035em; font-size: clamp(26px, 3vw, 32px); line-height: 1.08; }
.auth-brand .form-h em { font-style: normal; color: var(--mari-ink); }
.auth-brand .form-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink2); }
.auth-brand .form-sub a { color: var(--mari-ink); font-weight: 700; text-decoration: none; }
.auth-brand .form-sub a:hover { text-decoration: underline; }

.auth-brand .field { display: flex; flex-direction: column; gap: 7px; }
.auth-brand .field label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink2); }
.auth-brand .field label a { font-weight: 600; font-size: 12.5px; color: var(--mari-ink); text-decoration: none; }
.auth-brand .field label a:hover { text-decoration: underline; }
.auth-brand .input {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line2);
  border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 15px;
  font-family: Archivo, sans-serif; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.auth-brand .input.mono { font-family: var(--mono); font-size: 14px; letter-spacing: -.01em; }
.auth-brand .input::placeholder { color: var(--ink3); }
.auth-brand .input:focus { outline: 0; border-color: var(--mari); box-shadow: 0 0 0 4px rgba(255, 176, 31, .22); }
.auth-brand textarea.input { height: auto; padding: 12px 14px; resize: vertical; }

.auth-brand .pw-wrap { position: relative; }
.auth-brand .pw-wrap .input { padding-right: 46px; }
.auth-brand .toggle-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink3); border-radius: 8px; }
.auth-brand .toggle-eye:hover { color: var(--ink); background: var(--wash); }
.auth-brand .toggle-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.auth-brand .row-options { display: flex; align-items: center; justify-content: space-between; }
.auth-brand .checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink2); cursor: pointer; user-select: none; }
.auth-brand .checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-brand .checkbox .cb { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line2); display: grid; place-items: center; background: var(--paper); transition: all .15s var(--ease); }
.auth-brand .checkbox .cb svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; opacity: 0; }
.auth-brand .checkbox input:checked + .cb { background: var(--mari); border-color: var(--mari); }
.auth-brand .checkbox input:checked + .cb svg { opacity: 1; stroke: var(--ink); }
.auth-brand .checkbox input:focus-visible + .cb { box-shadow: 0 0 0 4px rgba(255, 176, 31, .22); }

/* Primary pill button (marigold) */
.auth-brand .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; border: 0; border-radius: 12px; background: var(--mari); color: var(--ink);
  font: 800 15.5px/1 Archivo, sans-serif; font-stretch: 106%; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.auth-brand .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.auth-brand .btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* SSO */
.auth-brand .divider { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.auth-brand .divider::before, .auth-brand .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-brand .sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-brand .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line2);
  color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.auth-brand .btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.auth-brand .btn-ghost svg { width: 18px; height: 18px; }

/* Alerts / notices */
.auth-brand .alert, .auth-brand .notice { display: flex; gap: 11px; padding: 13px 15px; border-radius: 12px; font-size: 13.5px; }
.auth-brand .alert { background: var(--bad-bg); color: var(--bad); }
.auth-brand .notice { background: var(--good-bg); color: var(--good); }
.auth-brand .alert svg, .auth-brand .notice svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; margin-top: 1px; }
.auth-brand .alert b { display: block; color: var(--ink); margin-bottom: 1px; }
.auth-brand .alert .meta { margin-top: 3px; color: var(--ink2); font-size: 12.5px; }

.auth-brand .legal { margin: 2px 0 0; font-size: 12px; color: var(--ink3); line-height: 1.5; }
.auth-brand .legal a { color: var(--ink2); text-decoration: underline; }

/* ---- Responsive: collapse the stage to a compact header on phones ---- */
@media (max-width: 880px) {
  .auth-brand .page { grid-template-columns: 1fr; }
  .auth-brand .stage { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .auth-brand .stage-body { padding: 20px 0 4px; margin: 0; }
  .auth-brand .headline { font-size: clamp(28px, 7vw, 38px); }
  .auth-brand .dek, .auth-brand .ticker, .auth-brand .stage-meta, .auth-brand .stage-foot { display: none; }
  .auth-brand .form-side { padding: 28px 22px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand * { animation: none !important; transition: none !important; }
}
