/* ============================================================
   AccordSign — Auth theme (Login / Signup / Forgot Password)
   Light "Signature" theme, aligned with inner-app surfaces.
   Used only by _AuthLayout.cshtml. Visual-only — no behaviour.
   Lifted from the Claude Design handoff (.dC--light) with the
   modifier stripped; the whole file is auth-scoped.
   ============================================================ */

:root {
  --as-amber:        #F2A93B;
  --as-amber-deep:   #D88E1F;
  --as-amber-soft:   #FDF1D8;
  --as-paper:        #FFFFFF;
  --as-cream:        #FBF8F2;
  --as-ink:          #1F1D1A;
  --as-ink-soft:     #4A4642;
  --as-muted:        #8A857E;
  --as-line:         #E8E2D6;
  --as-line-strong:  #D9D2C2;
  --as-danger:       #B14934;
  --as-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ---- Page shell ---- */
html, body { height: 100%; }
body.as-auth-body {
  margin: 0;
  font-family: var(--as-font);
  color: var(--as-ink);
  background: var(--as-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.as-auth-body img { display: block; }
.as-auth-body a { color: inherit; text-decoration: none; cursor: pointer; }

@keyframes as-draw {
  0%   { stroke-dashoffset: 1800; opacity: 0.55; }
  60%  { stroke-dashoffset: 0;    opacity: 1; }
  100% { stroke-dashoffset: -1800; opacity: 0.55; }
}

/* ---- Stage ---- */
.dC {
  position: relative;
  min-height: 100vh;
  background: var(--as-paper);
  color: var(--as-ink);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dC__backdrop { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dC__grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(242,169,59,0.18), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(242,169,59,0.10), transparent 60%);
  mix-blend-mode: multiply;
}
.dC__curl { position: absolute; }
.dC__curl--big  { right: -120px; top: -80px;  width: 900px; height: 560px; opacity: 0.35; }
.dC__curl--echo { left: -180px; bottom: -160px; width: 720px; height: 440px; opacity: 0.18; transform: rotate(180deg); }
.dC__curl svg { width: 100%; height: 100%; }
.dC__curl path {
  stroke: var(--as-amber); fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1800;
  animation: as-draw 8s ease-in-out infinite alternate;
}
.dC__curl--echo path { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  .dC__curl path { animation: none; stroke-dashoffset: 0; }
}

/* ---- Header / footer ---- */
.dC__head {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  padding: 26px 56px;
}
.dC__head img { height: 26px; width: auto; }
.dC__foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 56px 22px;
  font-size: 11.5px; color: var(--as-muted); letter-spacing: 0.04em;
}
.dC__foot a { color: var(--as-muted); }
.dC__foot a:hover { color: var(--as-ink); }
.dC__foot-sep { opacity: 0.5; }

/* ---- Layout: stage with pitch + panel ---- */
.dC__stage {
  position: relative; z-index: 2;
  flex: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 12px 56px 48px;
  align-items: center;
}
.dC__stage--centered { display: flex; align-items: center; justify-content: center; }

/* ---- Pitch column ---- */
.dC__pitch { max-width: 520px; }
.dC__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--as-amber-deep); margin-bottom: 22px;
}
.dC__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--as-amber); }
.dC__bigtitle {
  font-family: var(--as-font);
  font-size: 60px; line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 24px; font-weight: 700; color: var(--as-ink);
}
.dC__bigtitle .accent { color: var(--as-amber); }
.dC__bigsub {
  font-size: 16px; line-height: 1.55;
  color: var(--as-ink-soft); max-width: 460px; margin: 0 0 28px;
}
.dC__metaline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12px; color: var(--as-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.dC__metasep { opacity: 0.5; }
.dC__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dC__checks li { font-size: 14.5px; color: var(--as-ink-soft); display: flex; gap: 12px; align-items: center; }
.dC__checks li span { font-weight: 700; color: var(--as-amber); }

/* ---- Form panel (solid white card) ---- */
.dC__panel {
  background: var(--as-paper);
  border: 1px solid var(--as-line);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 36px 90px -36px rgba(31,29,26,0.22), 0 12px 30px -16px rgba(31,29,26,0.08);
}
.dC__panel--centered { width: 100%; max-width: 460px; }
.dC__panelhead { display: flex; justify-content: space-between; align-items: center; }
.dC__paneltag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--as-muted);
}
.dC__panellink { font-size: 12.5px; color: var(--as-ink-soft); }
.dC__panellink:hover { color: var(--as-ink); }

/* ---- Logo lockup inside panel header (mobile) ---- */
.dC__panellogo { display: none; }

/* ---- Provider button (Google) ---- */
.dC__providers { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dC__provider {
  height: 44px;
  background: var(--as-paper);
  border: 1px solid var(--as-line-strong);
  border-radius: 10px;
  color: var(--as-ink);
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, border-color .15s;
}
.dC__provider:hover { background: #FCFAF4; border-color: var(--as-amber); }
.dC__provider img { height: 18px; width: auto; }

/* ---- Divider ---- */
.dC__divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--as-muted);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 2px 0;
}
.dC__divider::before, .dC__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--as-line);
}

/* ---- Fields ---- */
.dC__fieldgroup { display: flex; flex-direction: column; gap: 12px; }
.dC__fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dC__field { display: flex; flex-direction: column; gap: 6px; }
.dC__label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--as-ink);
}
.dC__inputwrap { position: relative; display: flex; align-items: stretch; }
.dC__input {
  width: 100%; min-width: 0;
  height: 44px;
  padding: 0 14px;
  font-family: var(--as-font); font-size: 14px;
  color: var(--as-ink);
  background: var(--as-paper);
  border: 1px solid var(--as-line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dC__input:focus {
  border-color: var(--as-amber);
  background: var(--as-paper);
  box-shadow: 0 0 0 4px rgba(242,169,59,0.18);
}
.dC__input::placeholder { color: #B5AFA4; }
.dC__input:disabled { opacity: 0.6; cursor: not-allowed; }

/* password show/hide eye */
.dC__inputwrap .login-show-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--as-muted); cursor: pointer; font-size: 15px;
  display: flex; align-items: center;
}
.dC__inputwrap .login-show-pass:hover { color: var(--as-amber-deep); }
.dC__inputwrap .dC__input { padding-right: 40px; }

/* phone field (intlTelInput) keeps its own wrapper; just align the input */
.dC__field .iti { width: 100%; }
.dC__field .iti .dC__input { padding-left: 52px; }

/* ---- Region selector (signup) ---- */
.dC__region {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--as-muted);
  padding: 8px 0 0;
}
.dC__region .region-name { display: inline-flex; align-items: center; gap: 6px; }
.dC__region .black-text { color: var(--as-ink); font-weight: 600; }
.dC__region select {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}

/* ---- Checkbox row ---- */
.dC__panelrow {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 2px 0;
}
.dC__check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--as-ink-soft); cursor: pointer;
}
.dC__check input { accent-color: var(--as-amber); width: 15px; height: 15px; }
.dC__forgot { font-size: 12.5px; font-weight: 600; color: var(--as-amber-deep); }
.dC__forgot:hover { color: var(--as-amber); }

/* ---- Primary CTA ---- */
.dC__cta {
  height: 50px;
  border-radius: 12px;
  background: var(--as-amber);
  color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 0.005em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 2px;
  box-shadow: 0 12px 36px -8px rgba(242,169,59,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .12s, filter .15s;
}
.dC__cta:hover { transform: translateY(-1px); filter: brightness(1.04); color: #fff; }
.dC__cta:active { transform: translateY(0); }
.dC__cta-arrow { font-size: 18px; line-height: 1; }

/* ---- Legal / fine print ---- */
.dC__legal {
  font-size: 11.5px; color: var(--as-muted);
  margin: 4px 0 0; line-height: 1.55;
}
.dC__legal a { color: var(--as-ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.dC__legal a:hover { color: var(--as-amber-deep); }

/* ---- Forgot-password centred panel extras ---- */
.dC__back { font-size: 13px; color: var(--as-ink-soft); display: inline-block; margin-bottom: 2px; }
.dC__back:hover { color: var(--as-ink); }
.dC__bigicon {
  width: 64px; height: 64px;
  border-radius: 16px; border: 1px solid transparent;
  background: var(--as-amber-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 6px auto 12px;
}
.dC__centertitle {
  font-family: var(--as-font);
  font-size: 28px; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0; text-align: center; font-weight: 700; color: var(--as-ink);
}
.dC__centersub {
  font-size: 14px; color: var(--as-ink-soft);
  margin: 8px auto 14px; text-align: center; max-width: 360px; line-height: 1.55;
}

/* ---- Preloader (light) ---- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.88);
  /* NOTE: display is toggled by jQuery (.show/.hide).
     Do NOT use flexbox here — jQuery .show() sets display:block,
     which drops the align-items/justify-content centering.
     Centering is handled on .preloader_inner instead. */
}
.preloader_inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.preloader .loader-gif { height: 64px; width: auto; margin: 0 auto; }
.as-loader { width: 64px; height: 64px; display: block; margin: 0 auto; fill: var(--as-amber); }
.preloader .preloader-text {
  display: inline-block; margin-top: 12px;
  font-family: var(--as-font); font-size: 13px; color: var(--as-ink);
}

/* ============================================================
   Responsive — collapse to single column
   ============================================================ */
@media (max-width: 980px) {
  .dC__head, .dC__foot { padding-left: 28px; padding-right: 28px; }
  .dC__stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 8px 28px 40px;
    align-items: start;
  }
  .dC__bigtitle { font-size: 44px; }
  .dC__pitch { max-width: 100%; }
}

@media (max-width: 560px) {
  .dC__head { padding: 18px 22px; }
  .dC__foot { padding: 16px 22px 20px; }
  .dC__stage { padding: 4px 22px 32px; gap: 22px; }
  .dC__bigtitle { font-size: 34px; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 16px; }
  .dC__bigsub { font-size: 14px; margin-bottom: 18px; }
  .dC__panel { padding: 22px; border-radius: 18px; }
  .dC__panel--centered { max-width: 100%; }
  .dC__fieldrow { grid-template-columns: 1fr; }
  .dC__curl--big { width: 520px; height: 320px; right: -160px; top: -60px; }
  .dC__curl--echo { display: none; }
  .dC__otp { gap: 7px; }
  .dC__otp .OTPInput { width: 42px; height: 50px; font-size: 19px; }
}

/* ============================================================
   Follow-on auth pages — OTP, password reset / set
   ============================================================ */

/* ---- Pending-confirmation notice (OTP pages) ---- */
.dC__notice {
  font-size: 12.5px; line-height: 1.5;
  color: var(--as-amber-deep);
  background: rgba(242,169,59,0.12);
  border: 1px solid rgba(242,169,59,0.35);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

/* ---- Email highlight inside centred sub copy ---- */
.dC__email { color: var(--as-ink); font-weight: 600; }

/* ---- OTP input boxes ---- */
.dC__otp {
  display: flex; justify-content: center; gap: 10px;
  margin: 4px 0 2px;
}
.dC__otp .OTPInput {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--as-font); font-size: 22px; font-weight: 600;
  color: var(--as-ink);
  background: var(--as-paper);
  border: 1px solid var(--as-line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dC__otp .OTPInput:focus {
  border-color: var(--as-amber);
  background: var(--as-paper);
  box-shadow: 0 0 0 4px rgba(242,169,59,0.18);
}
.dC__otp .OTPInput:disabled { opacity: 0.45; }
.dC__otp .OTPInput::placeholder { color: #B5AFA4; }

/* ---- Resend countdown + link ---- */
.dC__timer {
  display: block; text-align: center;
  font-size: 12.5px; color: var(--as-muted);
  letter-spacing: 0.02em;
}
.dC__timer:empty { display: none; }
.dC__resend {
  font-size: 12.5px; color: var(--as-muted);
  text-align: center; margin: 2px 0 0;
}
.dC__resendlink { color: var(--as-amber-deep); font-weight: 600; }
.dC__resendlink:hover { color: var(--as-amber); }

/* ---- Password strength meter ---- */
.dC__strength { margin: 2px 0 0; }
.dC__strength .progress {
  background: transparent; height: auto; border-radius: 0;
  display: block; overflow: visible;
}
.dC__strength progress {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; height: 6px; border: none;
  border-radius: 999px; overflow: hidden;
  background: var(--as-line);
}
.dC__strength progress::-webkit-progress-bar {
  background: var(--as-line); border-radius: 999px;
}
.dC__strength progress::-webkit-progress-value {
  background: var(--as-amber); border-radius: 999px;
  transition: width .2s ease;
}
.dC__strength progress::-moz-progress-bar {
  background: var(--as-amber); border-radius: 999px;
}
.dC__strength p {
  font-size: 12px; color: var(--as-muted);
  margin: 8px 0 0;
}

/* ---- Password rule checklist ---- */
.dC__rules {
  margin: 4px 0 2px; padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.dC__rules li { font-size: 12.5px; color: var(--as-muted); }
.dC__rules li span { color: inherit; }
