/* ========================================================================
   APEX KASIR — AUTH PAGE REDESIGN
   Open-layout editorial design: no outer card, no nested panel surface.
   Authentication hooks and IDs remain unchanged for Supabase Auth.
   ======================================================================== */

#auth-screen {
  --auth-page: #f4f7fc;
  --auth-ink: #12213b;
  --auth-muted: #68778f;
  --auth-soft: #8795aa;
  --auth-line: rgba(55, 77, 112, .22);
  --auth-field-line: rgba(53, 75, 110, .28);
  --auth-focus: #2563eb;
  --auth-accent: #2563eb;
  --auth-brand-ink: #132544;
  --auth-brand-muted: #61728c;
  --auth-note: #64748b;
  position: fixed;
  inset: 0;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 58px);
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse 48rem 34rem at 6% 3%, rgba(68, 126, 231, .12), transparent 68%),
    radial-gradient(ellipse 34rem 28rem at 97% 92%, rgba(14, 165, 233, .08), transparent 72%),
    var(--auth-page);
  isolation: isolate;
  transition: background-color .28s ease, color .28s ease;
}

body.auth-locked #auth-screen {
  display: grid;
  place-items: center;
}

#auth-screen::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: linear-gradient(rgba(87, 111, 150, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 111, 150, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}

.auth-shell {
  position: relative;
  width: min(1240px, 100%);
  min-height: min(760px, calc(100dvh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: clamp(34px, 5.6vw, 88px);
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.auth-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(12px, 2vw, 30px) 0;
  overflow: visible;
  color: var(--auth-brand-ink);
  background: transparent !important;
}

.auth-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  top: 12%;
  left: 12%;
  border: 1px solid rgba(48, 107, 202, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(48, 107, 202, .035), 0 0 0 86px rgba(48, 107, 202, .025);
  pointer-events: none;
}

.auth-brand-top,
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--auth-ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .075em;
}

.auth-brand-top b,
.auth-mobile-brand b {
  font-weight: 850;
}

.auth-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 7px 22px rgba(25, 55, 100, .13);
}

.auth-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: auto 0;
  padding: 72px 0;
}

.auth-eyebrow {
  display: inline-block;
  color: #477ac0;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .2em;
}

.auth-brand .auth-eyebrow {
  color: #477ac0;
}

.auth-brand h1 {
  max-width: 610px;
  margin: 22px 0 18px;
  color: var(--auth-brand-ink);
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 800;
}

.auth-brand h1 em {
  font-style: normal;
  color: #2563eb;
}

.auth-brand-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--auth-brand-muted);
  font-size: 15px;
  line-height: 1.85;
}

.auth-brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-brand-muted);
  font-size: 11px;
  letter-spacing: .025em;
}

.auth-live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.auth-foot-line {
  width: 44px;
  height: 1px;
  background: var(--auth-line);
}

.auth-orb {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 50%;
  pointer-events: none;
}

.auth-orb-one {
  width: 380px;
  height: 380px;
  right: 0;
  top: 17%;
  box-shadow: 0 0 0 34px rgba(37, 99, 235, .025), 0 0 0 74px rgba(37, 99, 235, .018);
}

.auth-orb-two {
  width: 160px;
  height: 160px;
  right: 12%;
  bottom: -62px;
  background: rgba(37, 99, 235, .045);
  filter: blur(1px);
}

.auth-panel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px 0 24px clamp(24px, 3.7vw, 56px);
  border-left: 1px solid var(--auth-line);
  background: transparent !important;
}

.auth-panel {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.auth-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  margin-bottom: 38px;
}

.auth-mobile-brand {
  display: none;
}

.auth-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-theme-switch button {
  position: relative;
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--auth-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  transition: color .18s ease;
}

.auth-theme-switch button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transform: scaleX(.35);
  transition: background .18s ease, transform .18s ease;
}

.auth-theme-switch button svg {
  width: 14px;
  height: 14px;
}

.auth-theme-switch button:hover,
.auth-theme-switch button.active {
  color: var(--auth-accent);
}

.auth-theme-switch button.active::after {
  background: currentColor;
  transform: scaleX(1);
}

.auth-theme-switch button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 5px;
}

.auth-heading {
  margin: 0 0 30px;
}

.auth-heading .auth-eyebrow {
  color: #477ac0;
}

.auth-heading h2 {
  margin: 10px 0 8px;
  color: var(--auth-ink);
  font-size: clamp(29px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 800;
}

.auth-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 750;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.auth-label-row label {
  margin: 0 0 7px;
}

.auth-text-btn {
  padding: 0 0 7px;
  border: 0;
  background: transparent;
  color: var(--auth-accent);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.auth-input-wrap {
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--auth-field-line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transition: border-color .2s ease, transform .2s ease;
}

.auth-input-wrap:focus-within {
  border-color: var(--auth-focus);
  box-shadow: none !important;
  transform: translateY(-1px);
}

.auth-input-wrap > svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--auth-soft);
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--auth-ink);
  font: inherit;
  font-size: 13px;
}

.auth-input-wrap input::placeholder {
  color: var(--auth-soft);
  opacity: .86;
}

.auth-eye {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--auth-soft);
  cursor: pointer;
}

.auth-eye:hover {
  color: var(--auth-accent);
  background: rgba(37, 99, 235, .07);
}

.auth-eye svg {
  width: 17px;
  height: 17px;
}

.auth-message {
  display: none;
  margin: 13px 0 0;
  padding: 9px 0 9px 12px;
  border: 0;
  border-left: 2px solid #ef4444;
  border-radius: 0;
  background: transparent;
  color: #dc2626;
  font-size: 11px;
  line-height: 1.55;
}

.auth-message.show { display: block; }
.auth-message.success { border-left-color: #16a34a; color: #15803d; }
.auth-message.info { border-left-color: #3b82f6; color: #1d4ed8; }

.auth-submit {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .27);
}

.auth-submit svg { width: 17px; height: 17px; }
.auth-submit:disabled,
.auth-google:disabled { opacity: .48; cursor: not-allowed; }

.auth-account-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--auth-muted);
  font-size: 11px;
}

.auth-account-switch button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--auth-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 8px;
  color: var(--auth-soft);
  font-size: 10px;
  white-space: nowrap;
}

.auth-separator span {
  height: 1px;
  flex: 1;
  background: var(--auth-line);
}

.auth-google {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--auth-line);
  border-radius: 0;
  background: transparent !important;
  color: var(--auth-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.auth-google:hover:not(:disabled) {
  color: var(--auth-accent);
  border-color: var(--auth-accent);
  transform: translateY(-1px);
}

.auth-google svg { width: 18px; height: 18px; flex: none; }

.auth-config-note {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--auth-note);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 25px 0 0;
  color: var(--auth-note);
  font-size: 10px;
  text-align: center;
}

.auth-privacy svg { width: 14px; height: 14px; color: #16a37b; }

.auth-copyright {
  margin: 13px 0 0;
  color: var(--auth-soft);
  font-size: 9px;
  letter-spacing: .035em;
  text-align: center;
}

.auth-otp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.auth-otp-row .auth-input-wrap { min-width: 0; }
.auth-otp-row input { letter-spacing: .18em; font-weight: 800; }

.auth-send-otp {
  min-width: 112px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 9px;
  background: rgba(37, 99, 235, .07);
  color: var(--auth-accent);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.auth-send-otp:hover:not(:disabled) { background: rgba(37, 99, 235, .13); }
.auth-send-otp:disabled { opacity: .48; cursor: not-allowed; }
.auth-send-otp svg { width: 14px; height: 14px; }
.auth-otp-help { margin: 8px 0 0; color: var(--auth-note); font-size: 10px; line-height: 1.55; }
.auth-otp-field[hidden], .auth-submit[hidden], #auth-edit-signup[hidden] { display: none !important; }

/* Light theme */
#auth-screen[data-auth-theme="light"] .auth-brand { color: #142947; }
#auth-screen[data-auth-theme="light"] .auth-mark { background: #fff; }
#auth-screen[data-auth-theme="light"] .auth-otp-help { color: #68778f; }

/* Dark theme: same open canvas, with no card or panel surfaces. */
#auth-screen[data-auth-theme="dark"] {
  --auth-page: #080b12;
  --auth-ink: #f3f6fc;
  --auth-muted: #a4afc1;
  --auth-soft: #8997ad;
  --auth-line: rgba(192, 207, 230, .18);
  --auth-field-line: rgba(192, 207, 230, .28);
  --auth-focus: #70a5ff;
  --auth-accent: #8ab8ff;
  --auth-brand-ink: #f3f6fc;
  --auth-brand-muted: #9aa8bc;
  --auth-note: #929eb0;
  background:
    radial-gradient(ellipse 48rem 34rem at 6% 3%, rgba(37, 99, 235, .18), transparent 68%),
    radial-gradient(ellipse 34rem 28rem at 97% 92%, rgba(6, 182, 212, .08), transparent 72%),
    #080b12;
  color: var(--auth-ink);
}

#auth-screen[data-auth-theme="dark"]::before {
  opacity: .19;
  background-image: linear-gradient(rgba(168, 190, 225, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 190, 225, .045) 1px, transparent 1px);
}

#auth-screen[data-auth-theme="dark"] .auth-brand,
#auth-screen[data-auth-theme="dark"] .auth-brand-top,
#auth-screen[data-auth-theme="dark"] .auth-brand h1,
#auth-screen[data-auth-theme="dark"] .auth-mobile-brand,
#auth-screen[data-auth-theme="dark"] .auth-heading h2,
#auth-screen[data-auth-theme="dark"] .auth-google {
  color: #f3f6fc;
}

#auth-screen[data-auth-theme="dark"] .auth-brand .auth-eyebrow,
#auth-screen[data-auth-theme="dark"] .auth-heading .auth-eyebrow {
  color: #8ab8ff;
}

#auth-screen[data-auth-theme="dark"] .auth-brand h1 em { color: #8ab8ff; }
#auth-screen[data-auth-theme="dark"] .auth-panel-wrap { border-left-color: var(--auth-line); }

#auth-screen[data-auth-theme="dark"] .auth-input-wrap {
  border: 0;
  border-bottom: 1px solid var(--auth-field-line);
  background: transparent !important;
  box-shadow: none !important;
}

#auth-screen[data-auth-theme="dark"] .auth-input-wrap > svg { color: #91a6c2; }
#auth-screen[data-auth-theme="dark"] .auth-input-wrap input { color: #f3f6fc; }
#auth-screen[data-auth-theme="dark"] .auth-eye { color: #9aabc1; }
#auth-screen[data-auth-theme="dark"] .auth-eye:hover { background: rgba(255,255,255,.07); color: #dce8fb; }
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button { color: #9aa8bc; }
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button.active,
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button:hover { color: #9bc4ff; }
#auth-screen[data-auth-theme="dark"] .auth-google { border-bottom-color: var(--auth-line); }
#auth-screen[data-auth-theme="dark"] .auth-google:hover:not(:disabled) { color: #9bc4ff; border-color: #6ea6ff; }
#auth-screen[data-auth-theme="dark"] .auth-send-otp {
  border-color: rgba(138, 184, 255, .26);
  background: rgba(59, 130, 246, .1);
  color: #9bc4ff;
}
#auth-screen[data-auth-theme="dark"] .auth-send-otp:hover:not(:disabled) { background: rgba(59, 130, 246, .17); }
#auth-screen[data-auth-theme="dark"] .auth-otp-help { color: #929eb0; opacity: 1; }
#auth-screen[data-auth-theme="dark"] .auth-message { color: #fda4af; }
#auth-screen[data-auth-theme="dark"] .auth-message.success { color: #86efac; }
#auth-screen[data-auth-theme="dark"] .auth-message.info { color: #93c5fd; }
#auth-screen[data-auth-theme="dark"] .auth-config-note { color: #929eb0; }

/* Tablet and mobile: one continuous page, no framed surface or nested card. */
@media (max-width: 800px) {
  #auth-screen {
    display: none;
    height: 100dvh;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top, 0px)) clamp(22px, 6vw, 38px) max(28px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-locked #auth-screen {
    display: grid;
    place-items: center;
  }

  .auth-shell {
    width: 100%;
    max-width: 470px;
    min-height: calc(100dvh - max(52px, env(safe-area-inset-top, 0px)) - max(56px, env(safe-area-inset-bottom, 0px)));
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 0;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .auth-brand { display: none !important; }

  .auth-panel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 0;
    border: 0 !important;
    background: transparent !important;
  }

  .auth-panel {
    width: 100%;
    max-width: 440px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .auth-panel-topbar {
    justify-content: space-between;
    gap: 14px;
    min-height: 42px;
    margin-bottom: clamp(32px, 7vh, 56px);
  }

  .auth-mobile-brand {
    display: flex;
    min-width: 0;
    gap: 10px;
    margin: 0;
    font-size: 16px;
  }

  .auth-mobile-brand .auth-mark { width: 38px; height: 38px; border-radius: 11px; }
  .auth-theme-switch { gap: 15px; flex: none; }
  .auth-theme-switch button { height: 34px; font-size: 10px; }

  .auth-heading { margin-bottom: 27px; }
  .auth-heading h2 { font-size: clamp(27px, 6.5vw, 33px); }
  .auth-heading p { max-width: 36ch; font-size: 12px; }
  .auth-form label { font-size: 11px; }
  .auth-input-wrap { height: 51px; }
  .auth-label-row { margin-top: 19px; }
  .auth-submit { min-height: 52px; margin-top: 23px; }
  .auth-account-switch { margin-top: 18px; }
  .auth-separator { margin: 24px 0 7px; }
  .auth-google { min-height: 49px; }
  .auth-privacy { margin-top: 24px; }
  .auth-copyright { margin-top: 12px; }
}

@media (max-width: 420px) {
  #auth-screen {
    padding: max(20px, env(safe-area-inset-top, 0px)) 22px max(26px, env(safe-area-inset-bottom, 0px));
  }

  .auth-shell {
    width: 100%;
    min-height: calc(100dvh - max(46px, env(safe-area-inset-top, 0px)) - max(52px, env(safe-area-inset-bottom, 0px)));
  }

  .auth-panel-wrap { padding: 6px 0; }
  .auth-panel-topbar { margin-bottom: clamp(28px, 6.5vh, 48px); }
  .auth-mobile-brand { font-size: 15px; }
  .auth-mobile-brand .auth-mark { width: 36px; height: 36px; }
  .auth-theme-switch { gap: 12px; }
  .auth-heading { margin-bottom: 24px; }
  .auth-heading h2 { font-size: clamp(25px, 7vw, 30px); }
  .auth-input-wrap { height: 49px; }
  .auth-submit { min-height: 50px; }
  .auth-send-otp { min-width: 100px; padding: 0 9px; font-size: 10px; }
  .auth-otp-row { gap: 8px; }
}

@media (max-height: 720px) and (max-width: 800px) {
  #auth-screen { padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  .auth-shell { min-height: auto; }
  .auth-panel-topbar { margin-bottom: 22px; }
  .auth-heading { margin-bottom: 18px; }
  .auth-label-row { margin-top: 14px; }
  .auth-submit { margin-top: 17px; }
  .auth-separator { margin-top: 17px; }
  .auth-privacy { margin-top: 16px; }
}

@media (min-width: 801px) and (max-height: 760px) {
  #auth-screen { padding-top: 26px; padding-bottom: 26px; }
  .auth-shell { min-height: 0; }
  .auth-brand-copy { padding: 42px 0; }
  .auth-brand h1 { font-size: clamp(40px, 4.5vw, 58px); }
  .auth-panel-topbar { margin-bottom: 24px; }
  .auth-heading { margin-bottom: 22px; }
  .auth-label-row { margin-top: 15px; }
  .auth-submit { margin-top: 18px; }
  .auth-separator { margin-top: 18px; }
  .auth-privacy { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen,
  .auth-input-wrap,
  .auth-submit,
  .auth-google,
  .auth-theme-switch button,
  .auth-theme-switch button::after {
    transition: none !important;
  }

  #auth-screen::before,
  .auth-orb-one,
  .auth-orb-two {
    animation: none !important;
  }
}

/* Explicitly defeat legacy dark-card rules still present in the original theme sheet. */
#auth-screen[data-auth-theme="dark"] .auth-shell,
#auth-screen[data-auth-theme="dark"] .auth-panel {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#auth-screen[data-auth-theme="dark"] .auth-panel-wrap {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid var(--auth-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 800px) {
  #auth-screen[data-auth-theme="dark"] .auth-panel-wrap {
    border: 0 !important;
  }
}

/* Theme selector is a pair of text controls, not another boxed segmented card. */
#auth-screen[data-auth-theme="light"] .auth-theme-switch,
#auth-screen[data-auth-theme="dark"] .auth-theme-switch {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#auth-screen[data-auth-theme="light"] .auth-theme-switch button,
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button,
#auth-screen[data-auth-theme="light"] .auth-theme-switch button.active,
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button.active {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
