/* ==========================================================================
   Swarajbharti — Login UI layer, v2
   A single floating glass console split across a brand half and a form half,
   suspended over a deep verdant aurora.
   Pure presentation. No control names, no behaviour.
   ========================================================================== */

@property --sb-sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  /* Depth */
  --sb-abyss:   #1E0E03;
  --sb-deep:    #3A1B05;
  --sb-forest:  #4A2206;

  /* Brand */
  --sb-green:   #8F430A;
  --sb-leaf:    #C2701A;
  --sb-sprout:  #EFA96A;
  --sb-mist:    #FFF0E2;
  --sb-paper:   #FFFAF4;

  /* Accent — hairlines and small marks only */
  --sb-gold:    #C9A45C;
  --sb-gold-lt: #F0DCAC;

  --sb-muted:   #8A7264;
  --sb-dim:     rgba(255, 240, 226, 0.62);
  --sb-line:    rgba(91, 43, 8, 0.12);

  --sb-r-card:  30px;
  --sb-r-field: 15px;
  --sb-ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --sb-fast:    180ms cubic-bezier(0.4, 0, 0.2, 1);

  --sb-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sb-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sb-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --sb-grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.82%22%20numOctaves%3D%224%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22220%22%20height%3D%22220%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.5%22%2F%3E%3C%2Fsvg%3E");
}

.sb-page, .sb-page * { box-sizing: border-box; }

.sb-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sb-body);
  color: var(--sb-mist);
  background: var(--sb-abyss);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1 — The scene behind the console
   ========================================================================== */

.sb-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 18% 0%,    #5B2B08 0%, transparent 58%),
    radial-gradient(70% 60% at 88% 14%,   #5B2B08 0%, transparent 62%),
    radial-gradient(120% 90% at 50% 112%, #7D3A05 0%, transparent 64%),
    linear-gradient(165deg, #3A1B05 0%, #1E0E03 55%, #2A1304 100%);
}

/* Aurora — four slow layers, each on its own clock so they never loop in sync */
.sb-aurora {
  position: absolute;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(80px);
  will-change: transform;
  mix-blend-mode: screen;
}

.sb-aurora--1 {
  width: 58vmax; height: 46vmax; top: -20vmax; left: -14vmax;
  background: radial-gradient(circle at 38% 40%, rgba(239, 169, 106, 0.44), transparent 66%);
  animation: sb-aur-1 38s ease-in-out infinite;
}
.sb-aurora--2 {
  width: 50vmax; height: 44vmax; bottom: -22vmax; right: -12vmax;
  background: radial-gradient(circle at 58% 44%, rgba(194, 112, 26, 0.50), transparent 66%);
  animation: sb-aur-2 47s ease-in-out infinite;
}
.sb-aurora--3 {
  width: 34vmax; height: 30vmax; top: 8%; right: 14%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 164, 92, 0.26), transparent 68%);
  animation: sb-aur-3 59s ease-in-out infinite;
}
.sb-aurora--4 {
  width: 42vmax; height: 34vmax; bottom: 4%; left: 22%;
  background: radial-gradient(circle at 46% 50%, rgba(143, 67, 10, 0.44), transparent 70%);
  animation: sb-aur-4 53s ease-in-out infinite;
}

@keyframes sb-aur-1 {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  33%     { transform: translate3d(6vmax,4vmax,0) rotate(40deg) scale(1.12); }
  66%     { transform: translate3d(2vmax,7vmax,0) rotate(-26deg) scale(0.96); }
}
@keyframes sb-aur-2 {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg) scale(1.06); }
  50%     { transform: translate3d(-7vmax,-5vmax,0) rotate(-52deg) scale(0.94); }
}
@keyframes sb-aur-3 {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity: 0.8; }
  50%     { transform: translate3d(-5vmax,6vmax,0) scale(1.2); opacity: 1; }
}
@keyframes sb-aur-4 {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  40%     { transform: translate3d(5vmax,-4vmax,0) rotate(34deg); }
  75%     { transform: translate3d(-3vmax,3vmax,0) rotate(-18deg); }
}

/* Drifting leaf silhouettes, far back */
.sb-leaves { position: absolute; inset: 0; width: 100%; height: 100%; }

.sb-leaf {
  fill: var(--sb-sprout);
  opacity: 0.06;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  animation: sb-float 44s ease-in-out infinite;
}
.sb-leaf--2 { opacity: 0.045; animation-duration: 56s; animation-delay: -9s; }
.sb-leaf--3 { opacity: 0.055; animation-duration: 50s; animation-delay: -22s; }
.sb-leaf--4 { opacity: 0.035; animation-duration: 62s; animation-delay: -35s; }
.sb-leaf--5 { opacity: 0.05;  animation-duration: 48s; animation-delay: -15s; }

@keyframes sb-float {
  0%   { transform: translate(0,0) rotate(0deg); }
  25%  { transform: translate(2%,-3%) rotate(8deg); }
  50%  { transform: translate(-2%,2%) rotate(-6deg); }
  75%  { transform: translate(3%,3%) rotate(5deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

/* Film grain — stops the gradients banding on large screens */
.sb-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: var(--sb-grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
  animation: sb-grain-shift 7s steps(6) infinite;
}

@keyframes sb-grain-shift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3%,2%); }
  40%  { transform: translate(2%,-3%); }
  60%  { transform: translate(-2%,-2%); }
  80%  { transform: translate(3%,1%); }
  100% { transform: translate(0,0); }
}

/* Vignette pulls the eye to the console */
.sb-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 42%, rgba(16, 8, 2, 0.62) 100%);
}

/* ==========================================================================
   2 — The console
   ========================================================================== */

.sb-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1010px;
  perspective: 1600px;
}

.sb-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: 622px;
  border-radius: var(--sb-r-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background: rgba(58, 27, 5, 0.42);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
          backdrop-filter: blur(34px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 40px 80px -32px rgba(0, 0, 0, 0.72),
    0 90px 150px -60px rgba(0, 0, 0, 0.82),
    0 0 120px -50px rgba(194, 112, 26, 0.45);
  transform: rotateX(var(--sb-tilt-x, 0deg)) rotateY(var(--sb-tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 420ms var(--sb-ease);
  animation: sb-card-in 980ms var(--sb-ease) both;
}

@keyframes sb-card-in {
  from { opacity: 0; transform: translateY(34px) scale(0.965); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Signature: a gold hairline travelling the console edge, like light catching
   an embossed seal on a share certificate. */
.sb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--sb-sweep),
    transparent 0 54%,
    rgba(201, 164, 92, 0.50) 66%,
    rgba(240, 220, 172, 0.98) 74%,
    rgba(201, 164, 92, 0.40) 82%,
    transparent 92%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: sb-sweep-run 13s linear infinite;
  pointer-events: none;
}

@keyframes sb-sweep-run { to { --sb-sweep: 360deg; } }

/* Pointer spotlight — JS feeds it --sb-mx / --sb-my */
.sb-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--sb-mx, 50%) var(--sb-my, 0%),
    rgba(255, 255, 255, 0.10),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 380ms var(--sb-ease);
  pointer-events: none;
}

.sb-card:hover::after { opacity: 1; }

/* ==========================================================================
   3 — Brand half
   ========================================================================== */

.sb-aside {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 46px 44px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(91, 43, 8, 0.72) 0%, rgba(30, 14, 3, 0.86) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

/* The engraved rosette from passbooks and share certificates */
.sb-guilloche {
  position: absolute;
  top: 46%;
  left: 54%;
  width: 128%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.42;
  animation: sb-rotate 190s linear infinite;
  pointer-events: none;
}

@keyframes sb-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

.sb-aside > *:not(.sb-guilloche) { position: relative; z-index: 1; }

/* --- brand lockup --- */
.sb-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: sb-rise 760ms 180ms var(--sb-ease) both;
}

.sb-mark {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.7);
}

.sb-mark::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: conic-gradient(from 0deg,
    rgba(239, 169, 106,0), rgba(239, 169, 106,0.55), rgba(201,164,92,0.42), rgba(239, 169, 106,0));
  filter: blur(9px);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 88%);
          mask: radial-gradient(closest-side, transparent 70%, #000 88%);
  animation: sb-halo 18s linear infinite;
  pointer-events: none;
}

@keyframes sb-halo { to { transform: rotate(360deg); } }

.sb-mark img, .sb-mark svg {
  position: relative;
  z-index: 1;
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
}

.sb-wordmark {
  margin: 0;
  font-family: var(--sb-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #FFFFFF;
}

.sb-eyebrow {
  margin: 3px 0 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sb-gold);
}

/* --- headline --- */
.sb-pitch { animation: sb-rise 800ms 300ms var(--sb-ease) both; }

.sb-pitch h2 {
  margin: 0;
  font-family: var(--sb-display);
  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #FFFFFF;
}

.sb-pitch h2 em {
  font-style: italic;
  color: var(--sb-sprout);
}

.sb-pitch p {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sb-dim);
}

.sb-rule {
  width: 62px;
  height: 1px;
  margin: 26px 0 0;
  background: linear-gradient(90deg, var(--sb-gold), transparent);
}

/* --- feature list --- */
.sb-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.sb-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 240, 226, 0.88);
  transition: background var(--sb-fast), border-color var(--sb-fast), transform var(--sb-fast);
  animation: sb-rise 700ms var(--sb-ease) both;
}

.sb-points li:nth-child(1) { animation-delay: 420ms; }
.sb-points li:nth-child(2) { animation-delay: 490ms; }
.sb-points li:nth-child(3) { animation-delay: 560ms; }

.sb-points li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(239, 169, 106, 0.32);
  transform: translateX(3px);
}

.sb-points svg {
  flex: none;
  width: 17px; height: 17px;
  color: var(--sb-sprout);
}

/* ==========================================================================
   4 — Form half
   ========================================================================== */

.sb-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 44px;
  background: linear-gradient(175deg, rgba(255, 250, 244, 0.94) 0%, rgba(255, 240, 226, 0.9) 100%);
  color: var(--sb-forest);
}

.sb-head { margin-bottom: 24px; animation: sb-rise 700ms 240ms var(--sb-ease) both; }

.sb-head h3 {
  margin: 0;
  font-family: var(--sb-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--sb-forest);
}

.sb-head p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sb-muted);
}

.sb-form { display: flex; flex-direction: column; gap: 15px; }

@keyframes sb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- segmented login type -------------------------------------------------
   The native <select> stays the source of truth. JS builds these pills from
   its own <option> list, so data-bound options work untouched, and every
   click writes back to the select and fires its change event.
   Without JS the select simply renders as a normal styled dropdown.
   ------------------------------------------------------------------------ */

.sb-seg {
  position: relative;
  animation: sb-rise 640ms 300ms var(--sb-ease) both;
}

.sb-seg__label {
  display: block;
  margin: 0 0 8px 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-muted);
}

.sb-seg__track {
  position: relative;
  display: none;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--sb-line);
  background: rgba(255, 255, 255, 0.7);
}

.sb-seg.is-enhanced .sb-seg__track { display: flex; }

.sb-seg.is-enhanced select {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sb-seg__glider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--sb-leaf), var(--sb-green));
  box-shadow: 0 6px 16px -8px rgba(143, 67, 10, 0.85);
  transition: transform 380ms var(--sb-ease), width 380ms var(--sb-ease);
  pointer-events: none;
}

.sb-seg__opt {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sb-muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 260ms var(--sb-ease);
}

.sb-seg__opt:hover { color: var(--sb-green); }
.sb-seg__opt.is-active { color: #FFFFFF; }
.sb-seg__opt:focus-visible { outline: 2px solid var(--sb-leaf); outline-offset: 2px; }

/* Fallback styling for the plain select when JS hasn't run */
.sb-seg:not(.is-enhanced) select {
  width: 100%;
  height: 52px;
  padding: 0 42px 0 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--sb-forest);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-r-field);
  outline: none;
}

/* --- fields --- */
.sb-field { position: relative; animation: sb-rise 640ms var(--sb-ease) both; }

.sb-field:nth-of-type(1) { animation-delay: 360ms; }
.sb-field:nth-of-type(2) { animation-delay: 420ms; }
.sb-field:nth-of-type(3) { animation-delay: 480ms; }

.sb-field__icon {
  position: absolute;
  left: 15px; top: 25px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  color: var(--sb-muted);
  pointer-events: none;
  transition: color var(--sb-fast), transform var(--sb-fast);
  z-index: 2;
}
.sb-field__icon svg { width: 18px; height: 18px; display: block; }

.sb-field input[type="text"],
.sb-field input[type="password"],
.sb-field input[type="email"] {
  width: 100%;
  height: 62px;
  padding: 26px 16px 9px 44px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--sb-forest);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-r-field);
  outline: none;
  transition: border-color var(--sb-fast), background var(--sb-fast), box-shadow 240ms var(--sb-ease);
  -webkit-appearance: none;
  appearance: none;
}

.sb-field input::placeholder { color: transparent; }

.sb-field input:hover {
  border-color: rgba(143, 67, 10, 0.34);
  background: #FFFFFF;
}

.sb-field input:focus {
  border-color: var(--sb-leaf);
  background: #FFFFFF;
  box-shadow:
    0 0 0 4px rgba(194, 112, 26, 0.16),
    0 10px 26px -12px rgba(143, 67, 10, 0.6);
}

.sb-field input:focus ~ .sb-field__icon,
.sb-field.is-focused .sb-field__icon {
  color: var(--sb-green);
  transform: scale(1.07);
}

.sb-label {
  position: absolute;
  left: 44px; top: 21px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sb-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 210ms var(--sb-ease), color var(--sb-fast);
  z-index: 2;
}

.sb-field input:focus ~ .sb-label,
.sb-field input:not(:placeholder-shown) ~ .sb-label,
.sb-field.has-value .sb-label,
.sb-field.is-focused .sb-label {
  transform: translateY(-12px) scale(0.73);
  color: var(--sb-green);
}

.sb-reveal {
  position: absolute;
  right: 8px; top: 17px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--sb-muted);
  cursor: pointer;
  transition: color var(--sb-fast), background var(--sb-fast);
  z-index: 3;
}
.sb-reveal:hover { color: var(--sb-green); background: rgba(194, 112, 26,0.1); }
.sb-reveal:focus-visible { outline: 2px solid var(--sb-leaf); outline-offset: 2px; }
.sb-reveal svg { width: 17px; height: 17px; }

/* --- captcha --- */
.sb-captcha {
  display: grid;
  grid-template-columns: 1fr 132px 46px;
  gap: 9px;
  align-items: start;
  animation: sb-rise 640ms 540ms var(--sb-ease) both;
}
.sb-captcha .sb-field { animation: none; }

/* The plate the generated code sits on. GenerateCaptcha.aspx returns a
   transparent PNG, so everything behind the glyphs is drawn here. */
.sb-captcha__code {
  position: relative;
  height: 62px;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: var(--sb-r-field);
  border: 1px solid rgba(143, 67, 10, 0.18);
  background:
    repeating-linear-gradient(-32deg, rgba(143, 67, 10,0.055) 0 1px, transparent 1px 9px),
    radial-gradient(130% 150% at 18% -10%, #FFFFFF 0%, #FFF3E6 48%, #FCE5D0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -8px 18px -14px rgba(91, 43, 8,0.55),
    0 6px 16px -14px rgba(91, 43, 8,0.7);
  font-family: var(--sb-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--sb-forest);
  text-indent: 0.15em;
  user-select: none;
  transition: border-color var(--sb-fast), box-shadow var(--sb-fast);
}

/* Perforated edge, so the plate reads as a torn-off ticket rather than a box */
.sb-captcha__code::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  border: 1px dashed rgba(143, 67, 10, 0.18);
  pointer-events: none;
}

/* a slow glint travelling the code panel */
.sb-captcha__code::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-18deg);
  animation: sb-glint 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sb-glint {
  0%, 62%  { left: -50%; }
  86%,100% { left: 128%; }
}

.sb-captcha__code img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  padding: 3px 7px;
  object-fit: contain;
  display: block;
}

/* While the UpdatePanel is fetching a new code, dim the old one */
.sb-captcha.is-refreshing .sb-captcha__code {
  border-color: rgba(143, 67, 10, 0.34);
}
.sb-captcha.is-refreshing .sb-captcha__code img {
  opacity: 0.25;
  filter: blur(1.5px);
  transition: opacity 200ms var(--sb-ease), filter 200ms var(--sb-ease);
}

.sb-refresh {
  position: relative;
  width: 46px; height: 62px;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid rgba(143, 67, 10, 0.18);
  border-radius: var(--sb-r-field);
  background: linear-gradient(160deg, #FFFFFF 0%, rgba(255, 248, 241, 0.86) 100%);
  color: var(--sb-green);
  cursor: pointer;
  transition: border-color var(--sb-fast), transform var(--sb-fast), box-shadow var(--sb-fast);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

/* A green wash that rises out of the button on hover */
.sb-refresh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--sb-leaf), var(--sb-green));
  opacity: 0;
  transition: opacity var(--sb-fast);
}

.sb-refresh:hover {
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(143, 67, 10,0.9);
}
.sb-refresh:hover::before { opacity: 1; }
.sb-refresh:active { transform: translateY(0); }
.sb-refresh:focus-visible { outline: 2px solid var(--sb-leaf); outline-offset: 2px; }

.sb-refresh svg {
  position: relative;
  z-index: 1;
  width: 18px; height: 18px;
  transition: transform 560ms var(--sb-ease);
}
.sb-refresh.is-spinning svg { transform: rotate(360deg); }

/* --- submit ---------------------------------------------------------------
   The wrapper carries the gradient, glow, shine and ripple, because CSS
   pseudo-elements do not render on <input type="submit">. The control sits
   transparent on top and keeps its ID, OnClick and ValidationGroup.
   ------------------------------------------------------------------------ */

.sb-submit {
  position: relative;
  margin-top: 8px;
  height: 56px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sb-sprout) 0%, var(--sb-leaf) 38%, var(--sb-green) 74%, var(--sb-forest) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 12px 26px -12px rgba(143, 67, 10,0.8);
  transition: transform 240ms var(--sb-ease), box-shadow 240ms var(--sb-ease);
  animation: sb-rise 640ms 600ms var(--sb-ease) both;
}

.sb-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.34) inset,
    0 20px 38px -14px rgba(143, 67, 10,0.68),
    0 0 30px -4px rgba(239, 169, 106,0.55);
}
.sb-submit:active { transform: translateY(0); }

.sb-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4) 48%, transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 760ms var(--sb-ease);
}
.sb-submit:hover::after { left: 120%; }

.sb-submit input[type="submit"],
.sb-submit button,
.sb-submit a {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%; height: 100%;
  padding-right: 34px;      /* nudges the centred label left of the arrow */
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  line-height: 56px;
  cursor: pointer;
}

.sb-submit__arrow {
  position: absolute;
  z-index: 3;
  right: 24px; top: 50%;
  width: 17px; height: 17px;
  margin-top: -8px;
  color: #FFFFFF;
  pointer-events: none;
  transition: transform 260ms var(--sb-ease);
}
.sb-submit:hover .sb-submit__arrow { transform: translateX(4px); }

.sb-submit input:focus-visible,
.sb-submit button:focus-visible,
.sb-submit a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -5px;
  border-radius: 15px;
}

.sb-submit.is-busy { pointer-events: none; opacity: 0.72; }

.sb-ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: sb-ripple 640ms var(--sb-ease) forwards;
  pointer-events: none;
}

@keyframes sb-ripple { to { transform: scale(2.6); opacity: 0; } }

/* ==========================================================================
   5 — Validation and messages
   ========================================================================== */

.sb-form > .sb-error { margin-top: -8px; }

.sb-error {
  display: block;
  margin: 6px 0 0 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #B4402F;
  animation: sb-shake 380ms var(--sb-fast);
}

@keyframes sb-shake {
  0%,100% { transform: translateX(0); }
  22%     { transform: translateX(-4px); }
  55%     { transform: translateX(3px); }
  80%     { transform: translateX(-2px); }
}

.sb-field.is-invalid input {
  border-color: #B4402F;
  background: rgba(255, 249, 248, 0.95);
}
.sb-field.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(180,64,47,0.14); }
.sb-field.is-invalid .sb-field__icon,
.sb-field.is-invalid .sb-label { color: #B4402F; }

.sb-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(180,64,47,0.24);
  background: rgba(253,240,238,0.9);
  font-size: 13.5px;
  line-height: 1.5;
  color: #8C3123;
  animation: sb-rise 420ms var(--sb-ease) both;
}
.sb-alert:empty { display: none; }
.sb-alert svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }

/* ==========================================================================
   6 — Footer
   ========================================================================== */

.sb-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--sb-line);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--sb-muted);
  animation: sb-rise 640ms 680ms var(--sb-ease) both;
}

.sb-foot a {
  color: var(--sb-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--sb-fast);
}
.sb-foot a:hover { border-bottom-color: var(--sb-green); }

.sb-copy {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(138, 114, 100,0.9);
}

/* ==========================================================================
   7 — Responsive
   ========================================================================== */

@media (max-width: 940px) {
  .sb-stage { max-width: 500px; perspective: none; }
  .sb-card {
    grid-template-columns: 1fr;
    min-height: 0;
    transform: none !important;
  }
  .sb-aside {
    padding: 32px 30px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    gap: 22px;
  }
  .sb-pitch h2 { font-size: 27px; }
  .sb-pitch p  { max-width: none; font-size: 13.5px; }
  .sb-points   { flex-direction: row; flex-wrap: wrap; }
  .sb-points li { flex: 1 1 auto; font-size: 12px; padding: 9px 12px; }
  .sb-panel { padding: 32px 30px 30px; }
}

@media (max-width: 620px) {
  .sb-page  { padding: 22px 14px; }
  .sb-card  { border-radius: 24px; }
  .sb-aside { padding: 26px 22px 24px; }
  .sb-panel { padding: 26px 22px 26px; }
  .sb-pitch h2 { font-size: 24px; }
  .sb-pitch p  { display: none; }
  .sb-points   { display: none; }
  .sb-head h3  { font-size: 23px; }
  .sb-guilloche { opacity: 0.3; }

  /* Keep the complete captcha visible on phones. All three pieces stay on
     one compact row instead of moving the input below the image. */
  .sb-captcha {
    grid-template-columns: minmax(0, 1fr) 96px 40px;
    gap: 6px;
    align-items: center;
  }

  .sb-captcha .sb-field input[type="text"] {
    height: 54px;
    padding: 22px 8px 7px 39px;
    font-size: 14px;
  }

  .sb-captcha .sb-field__icon {
    left: 12px;
    top: 21px;
    width: 17px;
    height: 17px;
  }

  .sb-captcha .sb-field__icon svg {
    width: 16px;
    height: 16px;
  }

  .sb-captcha .sb-label {
    left: 39px;
    top: 18px;
    max-width: calc(100% - 45px);
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sb-captcha .sb-field input:focus ~ .sb-label,
  .sb-captcha .sb-field input:not(:placeholder-shown) ~ .sb-label,
  .sb-captcha .sb-field.has-value .sb-label,
  .sb-captcha .sb-field.is-focused .sb-label {
    transform: translateY(-10px) scale(0.76);
  }

  .sb-captcha__code,
  .sb-refresh {
    height: 54px;
    border-radius: 13px;
  }

  .sb-refresh { width: 40px; }

  .sb-captcha__code::before {
    inset: 3px;
    border-radius: 9px;
  }

  .sb-captcha__code img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    padding: 5px 3px;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .sb-seg__opt { font-size: 11.5px; padding: 9px 4px; }
}

/* ==========================================================================
   8 — Accessibility floor and fallbacks
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sb-page *, .sb-page *::before, .sb-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .sb-card { transform: none !important; }
  .sb-submit:hover { transform: none; }
}

@media (prefers-contrast: more) {
  .sb-panel { background: #FFFFFF; }
  .sb-field input { background: #FFFFFF; border-color: var(--sb-forest); }
  .sb-label, .sb-head p, .sb-foot { color: #5A4030; }
  .sb-pitch p, .sb-points li { color: #FFFFFF; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sb-card  { background: rgba(42, 19, 4, 0.94); }
  .sb-panel { background: #FFF8F1; }
}

/* Optional daytime scene — add class="sb-page sb-page--light" to swap the
   backdrop for the softer version without touching anything else. */
.sb-page--light { background: var(--sb-paper); }
.sb-page--light .sb-scene {
  background:
    radial-gradient(110% 80% at 14% 0%,  #FCE7D4 0%, transparent 56%),
    radial-gradient(90% 70% at 90% 10%,  #FADEC6 0%, transparent 60%),
    linear-gradient(168deg, #FFF8F1 0%, #FDEBDA 50%, #FADEC6 100%);
}
.sb-page--light .sb-scene::after {
  background: radial-gradient(120% 90% at 50% 50%, transparent 48%, rgba(91, 43, 8,0.14) 100%);
}
.sb-page--light .sb-aurora { mix-blend-mode: normal; opacity: 0.7; }
.sb-page--light .sb-grain  { opacity: 0.12; }
.sb-page--light .sb-card {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 34px 70px -30px rgba(58, 27, 5,0.34),
    0 80px 130px -60px rgba(58, 27, 5,0.4);
}

/* ==========================================================================
   9 — Shared blocks
   Used by the member sign-in, registration and user-ID recovery pages. The
   console, scene, fields, submit and footer above are unchanged; everything
   here sits inside .sb-panel alongside them.
   ========================================================================== */

/* Server code toggles this class (HideCustomer), so it has to bite.
   Scoped to the page, exactly as the old theme scoped it to .premium-login. */
.sb-page .hidden { display: none !important; }

/* A form taller than the viewport has to scroll, not clip. The scene is
   position:fixed, so it stays put while the console moves. */
.sb-page--tall {
  align-items: flex-start;
  overflow: visible;
}

.sb-page--tall .sb-stage { max-width: 1120px; }

/* Registration needs more room on the form side than the brand side */
.sb-card--wide { grid-template-columns: 0.78fr 1.22fr; }

/* --- remember-me / forgot-links row --- */
.sb-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  animation: sb-rise 640ms 560ms var(--sb-ease) both;
}

.sb-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sb-muted);
  cursor: pointer;
  user-select: none;
}

.sb-check input[type="checkbox"] {
  width: 17px; height: 17px;
  margin: 0;
  accent-color: var(--sb-green);
  cursor: pointer;
}

.sb-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }

.sb-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sb-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--sb-fast);
}
.sb-link:hover { border-bottom-color: var(--sb-green); }

/* --- "need an account" line, with the arrow that slides on hover --- */
.sb-signup {
  margin: 0;
  font-size: 12.5px;
  color: var(--sb-muted);
}

.sb-signup a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sb-green);
  font-weight: 600;
  text-decoration: none;
}

.sb-signup a svg {
  width: 13px; height: 13px;
  transition: transform var(--sb-fast);
}
.sb-signup a:hover svg { transform: translateX(3px); }

/* --- trust line --- */
.sb-ssl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(138, 114, 100, 0.9);
}
.sb-ssl svg { width: 13px; height: 13px; flex: none; color: var(--sb-green); }

/* --- registration grid --- */
.sb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.sb-cell--full { grid-column: 1 / -1; }

/* Sponsor / upliner lookups write their result here */
.sb-hint {
  display: block;
  min-height: 15px;
  margin: 6px 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sb-green);
}

/* --- radio group --- */
.sb-radio { animation: sb-rise 640ms 420ms var(--sb-ease) both; }

.sb-radio__title {
  display: block;
  margin: 0 0 8px 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-muted);
}
.sb-radio__title i { color: #B4402F; font-style: normal; }

.sb-radio__opts { display: flex; gap: 10px; flex-wrap: wrap; }

.sb-radio__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 52px;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-r-field);
  background: rgba(255, 255, 255, 0.78);
  transition: border-color var(--sb-fast), background var(--sb-fast), transform var(--sb-fast);
}
.sb-radio__opt:hover {
  border-color: rgba(143, 67, 10, 0.34);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.sb-radio__opt input[type="radio"] {
  width: 17px; height: 17px;
  margin: 0;
  accent-color: var(--sb-green);
  cursor: pointer;
}

.sb-radio__opt label {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sb-forest);
  cursor: pointer;
}

/* --- terms --- */
.sb-terms {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sb-muted);
}

.sb-terms input[type="checkbox"] {
  width: 17px; height: 17px;
  margin: 0;
  accent-color: var(--sb-green);
  cursor: pointer;
}

.sb-terms a {
  color: var(--sb-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 67, 10, 0.35);
}

/* --- action row --- */
.sb-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 6px;
}

/* The submit shell is full-width by default; in an action row it is not. */
.sb-submit--auto {
  flex: none;
  width: auto;
  min-width: 190px;
  margin-top: 0;
}
.sb-submit--auto input[type="submit"],
.sb-submit--auto button { padding: 0 40px 0 28px; }

.sb-ghost {
  color: var(--sb-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--sb-fast);
}
.sb-ghost:hover { color: var(--sb-green); }

.sb-actions__aside {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--sb-muted);
}
.sb-actions__aside a { color: var(--sb-green); font-weight: 600; text-decoration: none; }
.sb-actions__aside a:hover { text-decoration: underline; }

/* Anti-autofill decoy inputs — present for the browser, never for the user */
.sb-decoy { position: absolute; left: -2500px; }

@media (max-width: 940px) {
  .sb-card--wide { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sb-grid { grid-template-columns: minmax(0, 1fr); }
  .sb-actions { justify-content: center; }
  .sb-actions__aside { margin-left: 0; width: 100%; text-align: center; }
  .sb-submit--auto { width: 100%; }
}

/* ========================================================================== 
   10 - Orange brand edition
   Shared by the admin, member, registration and recovery flows. The palette
   is derived from the supplied orange logo and remains opt-in through sb-page--orange.
   ========================================================================== */

.sb-page--orange {
  --sb-abyss:   #2A0B03;
  --sb-deep:    #501805;
  --sb-forest:  #3B160C;
  --sb-green:   #D84C0B;
  --sb-leaf:    #F26722;
  --sb-sprout:  #FF9A4A;
  --sb-mist:    #FFF7EF;
  --sb-paper:   #FFF9F4;
  --sb-gold:    #F5B45E;
  --sb-gold-lt: #FFE0AC;
  --sb-muted:   #80675B;
  --sb-dim:     rgba(255, 244, 233, 0.72);
  --sb-line:    rgba(104, 42, 18, 0.13);
  background: #2A0B03;
}

.sb-page--orange .sb-scene {
  background:
    radial-gradient(86% 72% at 12% -4%, rgba(244, 103, 31, 0.72) 0%, transparent 58%),
    radial-gradient(72% 62% at 94% 12%, rgba(189, 57, 10, 0.58) 0%, transparent 64%),
    radial-gradient(110% 88% at 52% 114%, rgba(240, 111, 35, 0.48) 0%, transparent 64%),
    linear-gradient(158deg, #641E06 0%, #2A0B03 54%, #451305 100%);
}

.sb-page--orange .sb-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
}

.sb-page--orange .sb-scene::after {
  background: radial-gradient(118% 90% at 50% 48%, transparent 38%, rgba(30, 7, 1, 0.68) 100%);
}

.sb-page--orange .sb-aurora--1 {
  background: radial-gradient(circle at 38% 40%, rgba(255, 166, 88, 0.48), transparent 66%);
}
.sb-page--orange .sb-aurora--2 {
  background: radial-gradient(circle at 58% 44%, rgba(238, 79, 16, 0.54), transparent 66%);
}
.sb-page--orange .sb-aurora--3 {
  background: radial-gradient(circle at 50% 50%, rgba(255, 202, 128, 0.32), transparent 68%);
}
.sb-page--orange .sb-aurora--4 {
  background: radial-gradient(circle at 46% 50%, rgba(181, 48, 6, 0.50), transparent 70%);
}
.sb-page--orange .sb-leaf { fill: #FFB36F; }
.sb-page--orange .sb-grain { opacity: 0.17; }

.sb-page--orange .sb-card {
  min-height: 638px;
  border-color: rgba(255, 231, 208, 0.22);
  background: rgba(89, 25, 4, 0.46);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 42px 86px -34px rgba(28, 6, 0, 0.80),
    0 94px 160px -64px rgba(20, 4, 0, 0.90),
    0 0 125px -46px rgba(242, 103, 34, 0.62);
}

.sb-page--orange .sb-card::before {
  background: conic-gradient(
    from var(--sb-sweep),
    transparent 0 52%,
    rgba(245, 180, 94, 0.42) 64%,
    rgba(255, 234, 199, 0.98) 73%,
    rgba(242, 103, 34, 0.46) 83%,
    transparent 93%
  );
}

.sb-page--orange .sb-aside {
  padding: 42px 44px;
  background:
    radial-gradient(85% 66% at 8% 5%, rgba(255, 169, 92, 0.17), transparent 64%),
    linear-gradient(150deg, rgba(117, 35, 7, 0.84) 0%, rgba(43, 10, 2, 0.94) 100%);
  border-right-color: rgba(255, 225, 197, 0.12);
}

.sb-page--orange .sb-guilloche {
  width: 135%;
  opacity: 0.48;
}

.sb-lockup--orange {
  align-self: flex-start;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.sb-logo-frame {
  position: relative;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 224, 0.88);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 16px 34px -15px rgba(17, 3, 0, 0.82),
    0 0 0 5px rgba(255, 255, 255, 0.06);
  transition: transform 300ms var(--sb-ease), box-shadow 300ms var(--sb-ease);
}

.sb-lockup--orange:hover .sb-logo-frame {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 22px 42px -15px rgba(17, 3, 0, 0.92),
    0 0 0 6px rgba(255, 178, 105, 0.10);
}

.sb-logo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 13px;
}

.sb-lockup__copy { display: block; min-width: 0; }

.sb-lockup__copy strong {
  display: block;
  font-family: var(--sb-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.sb-lockup__copy small {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #FFC27F;
}

.sb-kicker,
.sb-head__eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sb-kicker {
  margin-bottom: 12px;
  color: #FFC27F;
}

.sb-page--orange .sb-pitch h2 em { color: #FFAA60; }
.sb-page--orange .sb-rule { width: 78px; background: linear-gradient(90deg, #FFB15F, rgba(255,177,95,0)); }

.sb-page--orange .sb-points li {
  border-color: rgba(255, 232, 210, 0.12);
  background: linear-gradient(100deg, rgba(255,255,255,0.072), rgba(255,255,255,0.025));
  color: rgba(255, 246, 238, 0.88);
}
.sb-page--orange .sb-points li:hover {
  border-color: rgba(255, 172, 94, 0.38);
  background: rgba(255, 255, 255, 0.10);
}
.sb-page--orange .sb-points svg { color: #FFAD64; }

.sb-page--orange .sb-panel {
  position: relative;
  padding: 44px 48px 38px;
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(255, 202, 151, 0.22), transparent 72%),
    linear-gradient(160deg, rgba(255, 252, 249, 0.97), rgba(255, 245, 236, 0.95));
}

.sb-page--orange .sb-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 112px;
  height: 112px;
  border-top: 1px solid rgba(242, 103, 34, 0.15);
  border-right: 1px solid rgba(242, 103, 34, 0.15);
  border-radius: 0 0 0 112px;
  pointer-events: none;
}

.sb-head__eyebrow {
  margin-bottom: 8px;
  color: #E25A18;
}

.sb-page--orange .sb-head h3 { color: #3B160C; }
.sb-page--orange .sb-head p { max-width: 36ch; color: #80675B; }

.sb-page--orange .sb-seg__track {
  border-color: rgba(104, 42, 18, 0.13);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px -21px rgba(99, 31, 7, 0.8) inset;
}

.sb-page--orange .sb-seg__glider {
  background: linear-gradient(135deg, #FF8B3D 0%, #F26722 52%, #C94308 100%);
  box-shadow: 0 9px 20px -9px rgba(177, 50, 4, 0.88);
}

.sb-page--orange .sb-seg__opt:hover { color: #D84C0B; }
.sb-page--orange .sb-seg__opt.is-active { color: #FFFFFF; }

.sb-page--orange .sb-field input[type="text"],
.sb-page--orange .sb-field input[type="password"],
.sb-page--orange .sb-field input[type="email"] {
  color: #3B160C;
  border-color: rgba(104, 42, 18, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px -25px rgba(96, 28, 5, 0.78);
}

.sb-page--orange .sb-field input:hover {
  border-color: rgba(242, 103, 34, 0.38);
  background: #FFFFFF;
}

.sb-page--orange .sb-field input:focus {
  border-color: #F26722;
  background: #FFFFFF;
  box-shadow:
    0 0 0 4px rgba(242, 103, 34, 0.13),
    0 13px 28px -17px rgba(174, 48, 4, 0.62);
}

.sb-page--orange .sb-field input:focus ~ .sb-field__icon,
.sb-page--orange .sb-field.is-focused .sb-field__icon,
.sb-page--orange .sb-field input:focus ~ .sb-label,
.sb-page--orange .sb-field input:not(:placeholder-shown) ~ .sb-label,
.sb-page--orange .sb-field.has-value .sb-label,
.sb-page--orange .sb-field.is-focused .sb-label { color: #D84C0B; }

.sb-page--orange .sb-reveal:hover {
  color: #D84C0B;
  background: rgba(242, 103, 34, 0.09);
}

.sb-page--orange .sb-captcha__code {
  border-color: rgba(216, 76, 11, 0.18);
  background:
    repeating-linear-gradient(-32deg, rgba(242,103,34,0.055) 0 1px, transparent 1px 9px),
    radial-gradient(130% 150% at 18% -10%, #FFFFFF 0%, #FFF5EA 48%, #F9E2CC 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -8px 18px -14px rgba(126,39,8,0.48),
    0 8px 18px -15px rgba(103,29,4,0.68);
}
.sb-page--orange .sb-captcha__code::before { border-color: rgba(216, 76, 11, 0.18); }
.sb-page--orange .sb-captcha.is-refreshing .sb-captcha__code { border-color: rgba(216, 76, 11, 0.36); }

.sb-page--orange .sb-refresh {
  border-color: rgba(216, 76, 11, 0.18);
  background: linear-gradient(160deg, #FFFFFF 0%, rgba(255, 242, 230, 0.90) 100%);
  color: #D84C0B;
}
.sb-page--orange .sb-refresh::before { background: linear-gradient(155deg, #FF8C3F, #D84C0B); }
.sb-page--orange .sb-refresh:hover { box-shadow: 0 12px 22px -13px rgba(163,45,4,0.90); }

.sb-page--orange .sb-submit {
  background: linear-gradient(115deg, #FF913E 0%, #F26722 36%, #DE4F0C 72%, #A92F05 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.34) inset,
    0 15px 30px -13px rgba(169, 47, 5, 0.82),
    0 0 0 1px rgba(167, 47, 6, 0.10);
}
.sb-page--orange .sb-submit:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.40) inset,
    0 22px 42px -15px rgba(161, 43, 3, 0.74),
    0 0 34px -4px rgba(255, 137, 59, 0.50);
}

.sb-page--orange .sb-foot { border-top-color: rgba(104, 42, 18, 0.11); }
.sb-page--orange .sb-foot a { color: #D84C0B; }
.sb-page--orange .sb-foot a:hover { border-bottom-color: #D84C0B; }
.sb-page--orange .sb-ssl { color: #80675B; }
.sb-page--orange .sb-radio__opt:hover { border-color: rgba(242, 103, 34, 0.38); }
.sb-page--orange .sb-terms a { border-bottom-color: rgba(216, 76, 11, 0.34); }

.sb-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #F26722;
  box-shadow: 0 0 0 3px rgba(242, 103, 34, 0.11);
  vertical-align: 1px;
}

@media (max-width: 940px) {
  .sb-page--orange .sb-card { min-height: 0; }
  .sb-page--orange .sb-aside { padding: 31px 32px 28px; }
  .sb-page--orange .sb-panel { padding: 34px 32px 31px; }
  .sb-page--orange .sb-logo-frame { flex-basis: 70px; width: 70px; height: 70px; border-radius: 19px; }
}

@media (max-width: 620px) {
  .sb-page--orange { padding: 18px 12px; align-items: flex-start; overflow: visible; }
  .sb-page--orange .sb-aside { gap: 18px; padding: 24px 22px 22px; }
  .sb-page--orange .sb-panel { padding: 27px 21px 25px; }
  .sb-page--orange .sb-lockup--orange { gap: 13px; }
  .sb-page--orange .sb-logo-frame { flex-basis: 62px; width: 62px; height: 62px; padding: 5px; border-radius: 17px; }
  .sb-page--orange .sb-lockup__copy strong { font-size: 21px; }
  .sb-page--orange .sb-lockup__copy small { font-size: 8px; letter-spacing: 0.13em; }
}

@media (prefers-contrast: more) {
  .sb-page--orange .sb-panel { background: #FFF9F4; }
  .sb-page--orange .sb-field input { border-color: #63301E; }
}

/* --- page-specific finishing -------------------------------------------- */

.sb-page--member .sb-card { min-height: 680px; }

.sb-page--franchise .sb-card { min-height: 680px; }
.sb-page--franchise .sb-franchise-step { width: 100%; }
.sb-page--franchise .sb-franchise-submit { margin-top: 20px; }

.sb-otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 13px;
  border: 1px solid rgba(216, 76, 11, 0.13);
  border-radius: 13px;
  background: rgba(255, 248, 241, 0.78);
  animation: sb-rise 640ms 500ms var(--sb-ease) both;
}

.sb-otp-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #80675B;
}

.sb-otp-timer svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #D84C0B;
}

.sb-otp-timer .countdown {
  margin: 0;
  font-family: var(--sb-mono);
  font-size: 12px;
  font-weight: 600;
  color: #D84C0B;
}

.sb-otp-resend {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 76, 11, 0.32);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #D84C0B;
  cursor: pointer;
}

.sb-otp-resend:hover { border-bottom-color: #D84C0B; }

.sb-page--registration .sb-aside {
  justify-content: flex-start;
  gap: 54px;
}

.sb-page--registration .sb-points { margin-top: auto; }

.sb-page--recovery .sb-card { min-height: 610px; }
.sb-page--recovery .sb-recovery-step { width: 100%; }

.sb-recovery-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(216, 76, 11, 0.13);
  border-radius: 13px;
  background: rgba(255, 248, 241, 0.78);
  font-size: 12px;
  line-height: 1.55;
  color: #80675B;
  animation: sb-rise 640ms 500ms var(--sb-ease) both;
}

.sb-recovery-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #D84C0B;
}

.sb-recovery-nav {
  margin-top: 2px;
  text-align: center;
  animation: sb-rise 640ms 650ms var(--sb-ease) both;
}

.sb-recovery-foot { margin-top: 23px; }

@media (max-width: 940px) {
  .sb-page--member .sb-card,
  .sb-page--franchise .sb-card,
  .sb-page--recovery .sb-card { min-height: 0; }

  .sb-page--registration .sb-aside { gap: 24px; }
}

@media (max-width: 620px) {
  .sb-page--registration .sb-aside { gap: 18px; }
  .sb-page--franchise .sb-franchise-submit { margin-top: 17px; }
  .sb-page--recovery .sb-recovery-foot { margin-top: 20px; }
}
