/* Celerart auth-page rebrand — injected via ingress nginx sub_filter.
   Scoped under html.celerart-auth (set pre-paint by inline head script on
   /login, /register, /forgot-password, /password/*, /magic* routes).
   Brand source: celerart.com — Satoshi Variable, ink #0F0F0F on white,
   pink accent #EB7EA3, black pill buttons. */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@500,700&display=swap');

html.celerart-auth {
  --ca-ink: #0f0f0f;
  --ca-body: #47474c;
  --ca-muted: #75757a;
  --ca-line: #dcdce0;
  --ca-accent: #eb7ea3;
}

html.celerart-auth body {
  font-weight: 500;
  background: #fff;
  color: var(--ca-ink);
}
/* OpnForm's Tailwind pins Inter on components; override across the auth surface */
html.celerart-auth body,
html.celerart-auth body :not(svg):not(path) {
  font-family: 'Satoshi', 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* ── hide OpnForm chrome: navbar, marketing column, footer ── */
html.celerart-auth nav { display: none !important; }
html.celerart-auth div:has(> h1.font-bold) { display: none !important; }
html.celerart-auth .grid.md\:grid-cols-3.my-8 { display: none !important; }

/* ── shared shell: header + footer identical to the root gate page ── */
#celerart-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
}
#celerart-shell-header img { height: 20px; width: auto; display: block; }
.celerart-nav-btn {
  background: var(--ca-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.celerart-nav-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45);
}
#celerart-shell-footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 36px;
  font-size: 12px;
  color: var(--ca-muted);
  border-top: 1px solid #e2e2e2;
}

/* ── composition: form vertically centered in the same zone as the gate copy.
   OpnForm's .main-layout is min-h-screen; shrink it so our shell footer stays
   in-viewport (header ≈97px + footer ≈71px). ── */
html.celerart-auth .main-layout,
html.celerart-auth body > .isolate,
html.celerart-auth body > .isolate > div { min-height: calc(100vh - 168px) !important; }
html.celerart-auth .main-layout > div:not([class]) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
html.celerart-auth .flex.mt-6.mb-10 {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
html.celerart-auth div:has(> .sticky.top-4) {
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
  padding: 0 24px;
  float: none;
}
html.celerart-auth .sticky.top-4 {
  position: static;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

/* ── typesetting ── */
html.celerart-auth h2 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ca-ink);
  text-wrap: balance;
}
html.celerart-auth h2 + p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ca-muted);
  margin-top: 8px;
  margin-bottom: 32px;
}
html.celerart-auth .input-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ca-body);
}
html.celerart-auth .required-dot { display: none !important; }

/* ── form rhythm ── */
html.celerart-auth form > div { margin-block: 9px; }
html.celerart-auth form { gap: 0; }

/* ── inputs ── */
html.celerart-auth input[type="text"],
html.celerart-auth input[type="email"],
html.celerart-auth input[type="password"] {
  font-size: 15px;
  font-weight: 500;
  color: var(--ca-ink);
  border-color: var(--ca-line);
  border-radius: 10px;
  padding-top: 11px;
  padding-bottom: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html.celerart-auth input:focus {
  border-color: var(--ca-ink) !important;
  --tw-ring-color: rgba(15, 15, 15, .12) !important;
  outline: none;
}
html.celerart-auth input::placeholder { color: #75757a; }
html.celerart-auth input[type="checkbox"] { accent-color: var(--ca-ink); }

/* remember-me row: align + breathe before the button */
html.celerart-auth form label[for="remember"] + * { font-size: 13.5px; }
html.celerart-auth form a[href="#"],
html.celerart-auth form .text-neutral-500 {
  font-size: 13.5px;
  transition: color .15s ease;
}
html.celerart-auth form a:hover { color: var(--ca-accent) !important; }

/* ── primary button: celerart black pill ── */
html.celerart-auth .bg-primary {
  background-color: var(--ca-ink) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding-top: 13px;
  padding-bottom: 13px;
  margin-top: 20px;
  transition: background-color .18s ease, transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
html.celerart-auth .bg-primary:hover {
  background-color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(15, 15, 15, .5);
}
html.celerart-auth .bg-primary:active { transform: translateY(0); box-shadow: none; }
html.celerart-auth .focus-visible\:outline-primary:focus-visible { outline-color: var(--ca-ink) !important; }

@media (max-width: 480px) {
  #celerart-shell-header { padding: 20px 24px; }
  .celerart-nav-btn { font-size: 13px; padding: 9px 18px; }
  #celerart-shell-footer { padding: 20px 24px; }
}

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