/* ========================================================================
   APEX KASIR — LIQUID GLASS iOS AUTHENTICATION
   Visual direction: one continuous glass surface, mirrored welcome/form
   halves, and a diagonal glass-blade sweep for Login <-> Buat Akun.
   Supabase hooks, form IDs, OTP flow, and workspace markup are unchanged.
   ======================================================================== */

#auth-screen {
  --lg-page: #eaf1fc;
  --lg-ink: #13223c;
  --lg-muted: #667792;
  --lg-soft: #91a0b6;
  --lg-line: rgba(68, 91, 130, .16);
  --lg-field: rgba(255, 255, 255, .48);
  --lg-field-border: rgba(255, 255, 255, .78);
  --lg-accent: #2866e8;
  --lg-accent-2: #65a8ff;
  --lg-panel: rgba(255, 255, 255, .66);
  --lg-panel-edge: rgba(255, 255, 255, .82);
  --lg-note: #71819a;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 54px);
  color: var(--lg-ink);
  background:
    radial-gradient(ellipse 50rem 35rem at 7% 2%, rgba(91, 151, 255, .25), transparent 68%),
    radial-gradient(ellipse 38rem 30rem at 96% 92%, rgba(92, 204, 235, .17), transparent 70%),
    radial-gradient(ellipse 32rem 26rem at 76% 18%, rgba(166, 145, 255, .12), transparent 70%),
    var(--lg-page);
  isolation: isolate;
  overscroll-behavior: contain;
  transition: background .4s ease, color .4s ease;
}

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

#auth-screen::before,
#auth-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#auth-screen::before {
  opacity: .42;
  background-image:
    radial-gradient(rgba(75, 112, 176, .16) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, black, transparent 78%);
}

#auth-screen::after {
  opacity: .6;
  background: linear-gradient(130deg, rgba(255,255,255,.28), transparent 42%, rgba(255,255,255,.12));
}

.auth-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  width: min(1160px, 100%);
  min-height: clamp(650px, calc(100dvh - 72px), 760px);
  overflow: hidden;
  border: 1px solid var(--lg-panel-edge) !important;
  border-radius: 34px !important;
  background: var(--lg-panel) !important;
  box-shadow:
    0 34px 90px rgba(42, 70, 119, .18),
    0 10px 28px rgba(47, 78, 130, .08),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(255,255,255,.28) !important;
  -webkit-backdrop-filter: blur(30px) saturate(175%) !important;
  backdrop-filter: blur(30px) saturate(175%) !important;
}

/* A single continuous shell: the two halves are not separate nested cards. */
.auth-brand {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: flex;
  flex: 0 0 54%;
  flex-direction: column;
  justify-content: space-between;
  width: 54%;
  min-width: 0;
  min-height: 100%;
  padding: clamp(38px, 4.4vw, 58px);
  overflow: hidden;
  color: #f7fbff;
  background:
    radial-gradient(ellipse 80% 70% at 5% 0%, rgba(142, 198, 255, .28), transparent 65%),
    radial-gradient(ellipse 60% 55% at 95% 95%, rgba(53, 176, 235, .2), transparent 70%),
    linear-gradient(145deg, rgba(27, 65, 131, .96), rgba(28, 91, 166, .9) 55%, rgba(40, 133, 188, .88));
  transition: transform 880ms cubic-bezier(.2, .85, .2, 1), filter 320ms ease;
  will-change: transform;
}

.auth-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  top: 12%;
  right: -10%;
  border: 1px solid rgba(232, 246, 255, .28);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(235, 247, 255, .055),
    0 0 0 62px rgba(235, 247, 255, .035),
    0 0 90px rgba(112, 190, 255, .18);
  transition: transform 900ms cubic-bezier(.2, .85, .2, 1);
}

.auth-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  left: -100px;
  bottom: -120px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.2), rgba(105,180,255,.08) 48%, transparent 70%);
  filter: blur(1px);
}

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

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

.auth-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(5, 24, 62, .22), inset 0 1px 0 #fff;
}

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

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: auto 0;
  padding: 54px 0;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0,0,0);
  transition: opacity 300ms ease, transform 620ms cubic-bezier(.2,.85,.2,1), visibility 0s;
}

.auth-brand-copy .auth-eyebrow {
  display: inline-block;
  color: rgba(209, 232, 255, .9);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 850;
  letter-spacing: .2em;
}

.auth-brand h1 {
  max-width: 550px;
  margin: 20px 0 18px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 820;
  text-wrap: balance;
}

.auth-brand h1 em {
  color: #a9dcff;
  font-style: normal;
  text-shadow: 0 4px 28px rgba(109, 190, 255, .18);
}

.auth-brand-copy p {
  max-width: 390px;
  margin: 0;
  color: rgba(236, 246, 255, .78);
  font-size: 14px;
  line-height: 1.85;
}

.auth-brand-copy--signup {
  position: absolute;
  top: 50%;
  right: clamp(34px, 4.4vw, 58px);
  left: clamp(34px, 4.4vw, 58px);
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(22px, -50%, 0);
  transition: opacity 340ms ease, transform 680ms cubic-bezier(.2,.85,.2,1), visibility 0s linear 680ms;
}

.auth-shell.is-signup .auth-brand-copy:not(.auth-brand-copy--signup) {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-22px, 0, 0);
  transition: opacity 280ms ease, transform 620ms cubic-bezier(.2,.85,.2,1), visibility 0s linear 620ms;
}

.auth-shell.is-signup .auth-brand-copy--signup {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition: opacity 420ms ease 180ms, transform 720ms cubic-bezier(.2,.85,.2,1) 80ms, visibility 0s;
}

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

.auth-live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #5cf0a3;
  box-shadow: 0 0 0 5px rgba(92,240,163,.14), 0 0 18px rgba(92,240,163,.42);
}

.auth-foot-line { height: 1px; width: 44px; background: rgba(255,255,255,.28); }
.auth-orb { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; pointer-events: none; }
.auth-orb-one { width: 370px; height: 370px; right: -80px; top: 18%; box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 74px rgba(255,255,255,.025); }
.auth-orb-two { width: 180px; height: 180px; right: 12%; bottom: -105px; background: rgba(120,196,255,.11); filter: blur(1px); }

.auth-panel-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 46%;
  align-items: center;
  justify-content: center;
  width: 46%;
  min-width: 0;
  min-height: 100%;
  padding: clamp(34px, 4vw, 52px) clamp(34px, 4.2vw, 58px);
  border-left: 1px solid rgba(255,255,255,.62);
  background: rgba(248, 251, 255, .24);
  transition: transform 880ms cubic-bezier(.2, .85, .2, 1), border-color 360ms ease, filter 320ms ease;
  will-change: transform;
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  margin-bottom: clamp(25px, 4.4vh, 42px);
}

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

/* iOS-style glass segmented control. */
.auth-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  padding: 4px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
  box-shadow: 0 5px 18px rgba(37, 68, 116, .08), inset 0 1px 0 rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.auth-theme-switch button {
  position: relative;
  min-width: 78px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #70819b;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: color 220ms ease, background 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(.2,.85,.2,1);
}

.auth-theme-switch button svg { width: 14px; height: 14px; }
.auth-theme-switch button.active {
  color: #1d4f9b;
  background: rgba(255,255,255,.88);
  box-shadow: 0 2px 8px rgba(36, 65, 111, .12), inset 0 1px 0 #fff;
}
.auth-theme-switch button:hover { transform: translateY(-1px); }
.auth-theme-switch button:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 3px; }

.auth-heading { margin: 0 0 28px; }
.auth-heading .auth-eyebrow { color: #3675cf; }
.auth-heading h2 {
  margin: 10px 0 8px;
  color: var(--lg-ink);
  font-size: clamp(28px, 2.55vw, 35px);
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 850;
}
.auth-heading p { margin: 0; color: var(--lg-muted); font-size: 13px; line-height: 1.65; }

.auth-form label { display: block; margin: 0 0 7px; color: var(--lg-muted); font-size: 11px; font-weight: 760; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.auth-label-row label { margin: 0 0 7px; }
.auth-text-btn {
  padding: 0 0 7px;
  border: 0;
  background: transparent;
  color: var(--lg-accent);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.auth-text-btn:hover { color: #124dbd; }

/* Inputs are individual frosted-glass controls, not flat underlines. */
.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  height: 51px;
  padding: 0 14px;
  border: 1px solid var(--lg-field-border);
  border-radius: 15px;
  background: var(--lg-field);
  box-shadow: 0 5px 16px rgba(42, 72, 120, .045), inset 0 1px 0 rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.2,.85,.2,1), background 220ms ease;
}
.auth-input-wrap:focus-within {
  border-color: rgba(43, 112, 232, .62);
  background: rgba(255,255,255,.68);
  box-shadow: 0 0 0 4px rgba(48, 116, 232, .12), 0 8px 22px rgba(42, 92, 160, .08), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-1px);
}
.auth-input-wrap > svg { width: 17px; height: 17px; flex: none; color: #7f94b2; }
.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(--lg-ink);
  font: inherit;
  font-size: 13px;
}
.auth-input-wrap input::placeholder { color: var(--lg-soft); opacity: .95; }
.auth-eye {
  display: grid;
  place-items: center;
  flex: none;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8296b2;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.auth-eye:hover { background: rgba(37,99,235,.1); color: var(--lg-accent); }
.auth-eye svg { width: 17px; height: 17px; }

.auth-message {
  display: none;
  margin: 12px 0 0;
  padding: 10px 13px;
  border: 1px solid rgba(244, 63, 94, .18);
  border-radius: 13px;
  background: rgba(255, 241, 242, .62);
  color: #be244c;
  font-size: 11px;
  line-height: 1.55;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.auth-message.show { display: block; }
.auth-message.success { border-color: rgba(22,163,74,.2); background: rgba(240,253,244,.68); color: #15803d; }
.auth-message.info { border-color: rgba(59,130,246,.2); background: rgba(239,246,255,.7); color: #1d4ed8; }

.auth-submit {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  background: linear-gradient(112deg, #3479f6 0%, #245de0 52%, #2050cb 100%);
  box-shadow: 0 12px 25px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255,255,255,.24);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.85,.2,1), box-shadow 220ms ease, opacity 180ms ease, filter 220ms ease;
}
.auth-submit::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  left: -22%;
  width: 45%;
  height: 260%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left 620ms cubic-bezier(.2,.85,.2,1);
}
.auth-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37,99,235,.3), inset 0 1px 0 rgba(255,255,255,.3); filter: saturate(1.08); }
.auth-submit:hover:not(:disabled)::before { left: 110%; }
.auth-submit:active:not(:disabled) { transform: translateY(0) scale(.99); }
.auth-submit svg { width: 17px; height: 17px; }
.auth-submit:disabled, .auth-google:disabled, .auth-send-otp:disabled { opacity: .5; cursor: not-allowed; }

.auth-account-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0 0;
  color: var(--lg-muted);
  font-size: 11px;
}
.auth-account-switch button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--lg-accent);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}
.auth-account-switch button:hover { color: #154fc0; transform: translateX(2px); }

.auth-separator { display: flex; align-items: center; gap: 12px; margin: 22px 0 9px; color: var(--lg-soft); font-size: 10px; white-space: nowrap; }
.auth-separator span { height: 1px; flex: 1; background: var(--lg-line); }
.auth-google {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 15px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 5px 16px rgba(42,72,120,.05), inset 0 1px 0 rgba(255,255,255,.82);
  color: var(--lg-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.auth-google:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,.66); border-color: rgba(83,145,239,.48); box-shadow: 0 9px 20px rgba(42,72,120,.09), inset 0 1px 0 rgba(255,255,255,.9); }
.auth-google svg { width: 18px; height: 18px; flex: none; }

.auth-config-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(59,130,246,.16);
  border-radius: 12px;
  background: rgba(219,234,254,.34);
  color: var(--lg-note);
  font-size: 10px;
  line-height: 1.6;
}
.auth-privacy { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 23px 0 0; color: var(--lg-note); font-size: 10px; text-align: center; }
.auth-privacy svg { width: 14px; height: 14px; color: #14a875; }
.auth-copyright { margin: 12px 0 0; color: var(--lg-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: 9px; }
.auth-otp-row .auth-input-wrap { min-width: 0; }
.auth-otp-row input { letter-spacing: .18em; font-weight: 850; }
.auth-send-otp {
  min-width: 110px;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(53,119,224,.22);
  border-radius: 14px;
  background: rgba(76,139,235,.1);
  color: var(--lg-accent);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.auth-send-otp:hover:not(:disabled) { background: rgba(76,139,235,.18); transform: translateY(-1px); }
.auth-send-otp svg { width: 14px; height: 14px; }
.auth-otp-help { margin: 8px 0 0; color: var(--lg-note); font-size: 10px; line-height: 1.55; }
.auth-otp-field[hidden], .auth-submit[hidden], #auth-edit-signup[hidden] { display: none !important; }

/* Dark glass mode: midnight sapphire with a soft blue/cyan refraction. */
#auth-screen[data-auth-theme="dark"] {
  --lg-page: #070c18;
  --lg-ink: #f1f6ff;
  --lg-muted: #a9b8ce;
  --lg-soft: #879bb8;
  --lg-line: rgba(194, 216, 245, .16);
  --lg-field: rgba(19, 31, 54, .58);
  --lg-field-border: rgba(188, 211, 244, .18);
  --lg-accent: #8dbbff;
  --lg-accent-2: #72c8ff;
  --lg-panel: rgba(11, 18, 34, .68);
  --lg-panel-edge: rgba(191, 214, 247, .19);
  --lg-note: #92a4bd;
  color: var(--lg-ink);
  background:
    radial-gradient(ellipse 48rem 34rem at 7% 2%, rgba(37, 99, 235, .28), transparent 68%),
    radial-gradient(ellipse 40rem 30rem at 96% 92%, rgba(6, 182, 212, .13), transparent 70%),
    radial-gradient(ellipse 28rem 24rem at 76% 18%, rgba(126, 105, 255, .11), transparent 70%),
    #070c18;
}
#auth-screen[data-auth-theme="dark"]::before { opacity: .2; background-image: radial-gradient(rgba(151,188,239,.22) .7px, transparent .7px); }
#auth-screen[data-auth-theme="dark"]::after { opacity: .28; background: linear-gradient(135deg, rgba(85,141,229,.12), transparent 45%, rgba(34,211,238,.08)); }
#auth-screen[data-auth-theme="dark"] .auth-shell {
  background: rgba(12, 20, 38, .72) !important;
  border-color: rgba(185, 211, 246, .2) !important;
  box-shadow: 0 36px 90px rgba(0,0,0,.46), 0 8px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(255,255,255,.025) !important;
}
#auth-screen[data-auth-theme="dark"] .auth-brand {
  background:
    radial-gradient(ellipse 78% 60% at 3% 0%, rgba(64,136,255,.28), transparent 68%),
    radial-gradient(ellipse 62% 60% at 98% 100%, rgba(26,177,222,.17), transparent 70%),
    linear-gradient(145deg, rgba(16,34,68,.98), rgba(15,49,87,.94) 55%, rgba(14,66,94,.92));
}
#auth-screen[data-auth-theme="dark"] .auth-panel-wrap { border-left-color: rgba(190,213,245,.14); background: rgba(10,17,31,.18); }
#auth-screen[data-auth-theme="dark"] .auth-shell.is-signup > .auth-panel-wrap { border-left-color: transparent; border-right-color: rgba(190,213,245,.14); }
.auth-shell.is-signup > .auth-panel-wrap { border-left-color: transparent; border-right: 1px solid rgba(68,91,130,.16); }
#auth-screen[data-auth-theme="dark"] .auth-theme-switch { border-color: rgba(190,213,245,.16); background: rgba(19,31,52,.62); box-shadow: 0 5px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.07); }
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button { color: #9eafc7; }
#auth-screen[data-auth-theme="dark"] .auth-theme-switch button.active { color: #f4f8ff; background: rgba(111,151,211,.22); box-shadow: 0 2px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.09); }
#auth-screen[data-auth-theme="dark"] .auth-heading .auth-eyebrow { color: #8dbbff; }
#auth-screen[data-auth-theme="dark"] .auth-input-wrap { background: rgba(18,31,53,.66); border-color: rgba(180,207,242,.17); box-shadow: 0 6px 18px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.045); }
#auth-screen[data-auth-theme="dark"] .auth-input-wrap:focus-within { background: rgba(22,39,66,.82); border-color: rgba(111,169,255,.7); box-shadow: 0 0 0 4px rgba(77,139,235,.16), 0 8px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.07); }
#auth-screen[data-auth-theme="dark"] .auth-input-wrap > svg,
#auth-screen[data-auth-theme="dark"] .auth-eye { color: #9aafce; }
#auth-screen[data-auth-theme="dark"] .auth-input-wrap input { color: #f2f7ff; }
#auth-screen[data-auth-theme="dark"] .auth-input-wrap input::placeholder { color: #91a3bd; }
#auth-screen[data-auth-theme="dark"] .auth-google { color: #edf4ff; border-color: rgba(190,213,245,.17); background: rgba(25,39,62,.54); box-shadow: 0 6px 18px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.055); }
#auth-screen[data-auth-theme="dark"] .auth-google:hover:not(:disabled) { background: rgba(43,65,99,.62); border-color: rgba(122,177,255,.4); }
#auth-screen[data-auth-theme="dark"] .auth-send-otp { color: #a8cdff; border-color: rgba(122,177,255,.22); background: rgba(59,130,246,.13); }
#auth-screen[data-auth-theme="dark"] .auth-send-otp:hover:not(:disabled) { background: rgba(59,130,246,.22); }
#auth-screen[data-auth-theme="dark"] .auth-message { background: rgba(78,24,42,.38); border-color: rgba(251,113,133,.2); color: #fecdd3; }
#auth-screen[data-auth-theme="dark"] .auth-message.success { background: rgba(20,83,45,.3); border-color: rgba(74,222,128,.2); color: #bbf7d0; }
#auth-screen[data-auth-theme="dark"] .auth-message.info { background: rgba(30,64,120,.3); border-color: rgba(96,165,250,.2); color: #bfdbfe; }
#auth-screen[data-auth-theme="dark"] .auth-config-note { border-color: rgba(122,177,255,.16); background: rgba(42,76,128,.18); color: #9db4d4; }
#auth-screen[data-auth-theme="dark"] .auth-otp-help { color: #9aacc5; }
#auth-screen[data-auth-theme="dark"] .auth-privacy { color: #9aacc5; }
#auth-screen[data-auth-theme="dark"] .auth-copyright { color: #8194b0; }
#auth-screen[data-auth-theme="dark"] .auth-brand h1 em { color: #a8ddff; }

/* RAR-inspired mirrored layout: form and welcome surfaces trade sides. */
@media (min-width: 801px) {
  .auth-shell > .auth-brand { transform: translateX(0); }
  .auth-shell > .auth-panel-wrap { transform: translateX(0); }
  .auth-shell.is-signup > .auth-brand { transform: translateX(85.1852%); }
  .auth-shell.is-signup > .auth-panel-wrap { transform: translateX(-117.3913%); }
  .auth-shell.is-mode-changing > .auth-brand { filter: saturate(1.12) brightness(1.035); }
  .auth-shell.is-mode-changing > .auth-panel-wrap { filter: saturate(1.08); }
  .auth-shell.is-signup .auth-brand::before { transform: translateX(-8%) scale(1.04); }
  .auth-shell:not(.is-signup) .auth-brand::before { transform: translateX(0) scale(1); }
}

/* Diagonal frosted blade that sweeps across the entire shell on mode changes. */
.auth-transition-blade {
  position: absolute !important;
  z-index: 25 !important;
  top: -22% !important;
  bottom: -22% !important;
  left: -42% !important;
  width: 68% !important;
  display: block !important;
  pointer-events: none !important;
  opacity: 0;
  transform: translate3d(-125%,0,0) skewX(-16deg);
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(104,164,255,.04) 20%,
    rgba(115,177,255,.18) 36%,
    rgba(239,248,255,.68) 49%,
    rgba(255,255,255,.84) 50%,
    rgba(164,211,255,.42) 52%,
    rgba(76,145,245,.16) 64%,
    transparent 100%);
  -webkit-backdrop-filter: blur(11px) saturate(185%);
  backdrop-filter: blur(11px) saturate(185%);
  filter: drop-shadow(0 0 22px rgba(87,157,255,.38));
  will-change: transform, opacity;
}
.auth-transition-blade::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.98) 18%, #fff 50%, rgba(211,235,255,.96) 82%, transparent);
  box-shadow: 0 0 26px 6px rgba(117,184,255,.72);
}
.auth-transition-blade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 13px);
  width: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.2), transparent);
  filter: blur(7px);
}
.auth-shell.is-sweeping .auth-transition-blade {
  animation: apexLiquidGlassBlade 920ms cubic-bezier(.62,.02,.24,1) both !important;
}
@keyframes apexLiquidGlassBlade {
  0% { opacity: 0; transform: translate3d(-125%,0,0) skewX(-16deg); }
  13% { opacity: .98; }
  78% { opacity: .86; }
  100% { opacity: 0; transform: translate3d(365%,0,0) skewX(-16deg); }
}

.auth-shell.is-mode-changing .auth-panel {
  animation: apexGlassPanelArrive 720ms cubic-bezier(.2,.85,.2,1) both;
}
.auth-shell.is-mode-changing .auth-brand-top,
.auth-shell.is-mode-changing .auth-brand-foot {
  animation: apexGlassBrandArrive 680ms cubic-bezier(.2,.85,.2,1) both;
}
@keyframes apexGlassPanelArrive {
  0% { opacity: .66; filter: blur(2px); }
  100% { opacity: 1; filter: blur(0); }
}
@keyframes apexGlassBrandArrive {
  0% { opacity: .72; }
  100% { opacity: 1; }
}

/* Mid-size laptops keep enough width for the expanded OTP signup form. */
@media (min-width: 801px) and (max-width: 1080px) {
  #auth-screen { padding: 24px; }
  .auth-shell { min-height: min(720px, calc(100dvh - 48px)); }
  .auth-brand { flex-basis: 49%; width: 49%; padding: 34px; }
  .auth-panel-wrap { flex-basis: 51%; width: 51%; padding: 30px 34px; }
  .auth-shell.is-signup > .auth-brand { transform: translateX(104.0817%); }
  .auth-shell.is-signup > .auth-panel-wrap { transform: translateX(-96.0784%); }
  .auth-brand h1 { font-size: clamp(38px, 4.6vw, 54px); }
}

/* Mobile: one unified glass sheet, no nested card; the glass blade still sweeps. */
@media (max-width: 800px) {
  #auth-screen {
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(18px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .auth-shell {
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    min-height: 0;
    margin: auto;
    border-radius: 28px !important;
    overflow: hidden;
  }
  .auth-brand { display: none !important; }
  .auth-panel-wrap {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 28px clamp(22px, 6vw, 34px) 26px;
    border: 0 !important;
    background: rgba(255,255,255,.16);
    transform: none !important;
    transition: none;
  }
  .auth-panel { width: 100%; max-width: 420px; margin: 0 auto; }
  .auth-panel-topbar { justify-content: space-between; gap: 12px; min-height: 42px; margin-bottom: 28px; }
  .auth-mobile-brand { display: flex; min-width: 0; gap: 10px; font-size: 15px; }
  .auth-mobile-brand .auth-mark { width: 38px; height: 38px; border-radius: 12px; }
  .auth-theme-switch { flex: none; gap: 2px; }
  .auth-theme-switch button { min-width: 66px; height: 30px; padding: 0 9px; font-size: 10px; }
  .auth-heading { margin-bottom: 23px; }
  .auth-heading h2 { font-size: clamp(26px, 7vw, 32px); }
  .auth-heading p { font-size: 12px; }
  .auth-label-row { margin-top: 16px; }
  .auth-submit { margin-top: 20px; }
  .auth-separator { margin-top: 19px; }
  .auth-privacy { margin-top: 20px; }
  .auth-transition-blade {
    top: -28% !important;
    bottom: -28% !important;
    left: -52% !important;
    width: 76% !important;
    transform: translate3d(-140%,0,0) skewX(-15deg);
  }
  @keyframes apexLiquidGlassBlade {
    0% { opacity: 0; transform: translate3d(-140%,0,0) skewX(-15deg); }
    15% { opacity: .94; }
    82% { opacity: .78; }
    100% { opacity: 0; transform: translate3d(350%,0,0) skewX(-15deg); }
  }
  #auth-screen[data-auth-theme="dark"] .auth-panel-wrap { background: rgba(10,17,31,.2); }
}

@media (max-width: 420px) {
  #auth-screen { padding-left: 10px; padding-right: 10px; }
  .auth-shell { border-radius: 24px !important; }
  .auth-panel-wrap { padding: 22px 18px 22px; }
  .auth-panel-topbar { margin-bottom: 22px; }
  .auth-mobile-brand { font-size: 14px; }
  .auth-mobile-brand .auth-mark { width: 35px; height: 35px; }
  .auth-theme-switch button { min-width: 59px; padding: 0 7px; }
  .auth-heading { margin-bottom: 20px; }
  .auth-input-wrap { height: 49px; }
  .auth-otp-row { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .auth-send-otp { min-width: 100px; min-height: 43px; padding: 0 9px; }
}

@media (max-height: 760px) and (min-width: 801px) {
  #auth-screen { padding-top: 18px; padding-bottom: 18px; }
  .auth-shell { min-height: 650px; }
  .auth-panel-topbar { margin-bottom: 22px; }
  .auth-heading { margin-bottom: 20px; }
  .auth-label-row { margin-top: 14px; }
  .auth-submit { margin-top: 17px; }
  .auth-privacy { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell,
  .auth-brand,
  .auth-panel-wrap,
  .auth-transition-blade,
  .auth-brand-copy,
  .auth-input-wrap,
  .auth-submit,
  .auth-google,
  .auth-theme-switch button {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .auth-shell.is-sweeping .auth-transition-blade { display: none; }
}

/* ========================================================================
   APEX KASIR v1.4.1 — FINAL RESPONSIVE LAYOUT CORRECTION
   Fixes the desktop form clipping caused by legacy flex-basis/padding rules.
   Keeps the mirrored Login <-> Sign Up motion and all existing auth hooks.
   ======================================================================== */

@media (min-width: 901px) {
  #auth-screen {
    padding: clamp(18px, 2.6vw, 42px);
    box-sizing: border-box;
  }

  #auth-screen .auth-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    width: min(1320px, 100%);
    max-width: 1320px;
    min-width: 0;
    min-height: min(800px, calc(100dvh - 72px));
    height: auto;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box !important;
  }

  #auth-screen .auth-shell > .auth-brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex: none !important;
    flex-basis: auto !important;
    width: auto !important;
    min-width: 0;
    max-width: none;
    padding: clamp(34px, 4vw, 60px);
    box-sizing: border-box !important;
    transform: translateX(0) !important;
    z-index: 1;
  }

  #auth-screen .auth-shell > .auth-panel-wrap {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex: none !important;
    flex-basis: auto !important;
    width: auto !important;
    min-width: 0;
    max-width: none;
    min-height: 100%;
    padding: clamp(28px, 3.5vw, 50px) clamp(22px, 3.4vw, 48px);
    box-sizing: border-box !important;
    transform: translateX(0) !important;
    z-index: 2;
  }

  #auth-screen .auth-panel {
    display: block;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    margin-inline: auto;
    box-sizing: border-box;
  }

  #auth-screen .auth-panel-topbar,
  #auth-screen .auth-form,
  #auth-screen .auth-heading,
  #auth-screen .auth-google,
  #auth-screen .auth-submit {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #auth-screen .auth-panel-topbar {
    justify-content: flex-end;
    margin-bottom: clamp(20px, 3.4vh, 34px);
  }

  #auth-screen .auth-theme-switch {
    max-width: 100%;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #auth-screen .auth-heading h2 {
    font-size: clamp(27px, 2.45vw, 35px);
    overflow-wrap: anywhere;
  }

  #auth-screen .auth-input-wrap,
  #auth-screen .auth-message,
  #auth-screen .auth-config-note {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Keep the original mirrored panel swap, now matched to a 56/44 grid. */
  #auth-screen .auth-shell.is-signup > .auth-brand {
    transform: translateX(78.5714%) !important;
  }

  #auth-screen .auth-shell.is-signup > .auth-panel-wrap {
    transform: translateX(-127.2727%) !important;
  }

  #auth-screen .auth-shell.is-mode-changing > .auth-brand {
    filter: saturate(1.1) brightness(1.025);
  }

  #auth-screen .auth-shell.is-mode-changing > .auth-panel-wrap {
    filter: saturate(1.06);
  }
}

/* Light theme: the branding side is a readable pale-sapphire glass surface. */
#auth-screen[data-auth-theme="light"] .auth-shell {
  border-color: rgba(255, 255, 255, .88) !important;
  background: rgba(248, 251, 255, .66) !important;
  box-shadow:
    0 30px 88px rgba(54, 85, 139, .16),
    0 8px 26px rgba(56, 94, 156, .07),
    inset 0 1px 0 rgba(255,255,255,.96) !important;
}

#auth-screen[data-auth-theme="light"] .auth-brand {
  color: #142b4c !important;
  background:
    radial-gradient(ellipse 74% 68% at 9% 4%, rgba(255,255,255,.94), transparent 68%),
    radial-gradient(ellipse 62% 62% at 93% 96%, rgba(125,190,255,.22), transparent 72%),
    linear-gradient(145deg, rgba(231,241,255,.96), rgba(218,234,255,.9) 56%, rgba(211,232,250,.88)) !important;
}

#auth-screen[data-auth-theme="light"] .auth-brand-top,
#auth-screen[data-auth-theme="light"] .auth-brand h1 {
  color: #142b4c !important;
}

#auth-screen[data-auth-theme="light"] .auth-brand .auth-eyebrow {
  color: #3976c6 !important;
}

#auth-screen[data-auth-theme="light"] .auth-brand h1 em {
  color: #2563eb !important;
  text-shadow: 0 4px 22px rgba(37,99,235,.13);
}

#auth-screen[data-auth-theme="light"] .auth-brand-copy p,
#auth-screen[data-auth-theme="light"] .auth-brand-foot {
  color: rgba(29, 55, 91, .72) !important;
}

#auth-screen[data-auth-theme="light"] .auth-foot-line {
  background: rgba(49, 91, 151, .25) !important;
}

#auth-screen[data-auth-theme="light"] .auth-brand::before,
#auth-screen[data-auth-theme="light"] .auth-orb {
  border-color: rgba(58, 112, 190, .18);
  box-shadow: 0 0 0 28px rgba(58,112,190,.045), 0 0 0 64px rgba(58,112,190,.028);
}

#auth-screen[data-auth-theme="light"] .auth-panel-wrap {
  border-left-color: rgba(66, 94, 139, .15) !important;
  background: rgba(255,255,255,.34) !important;
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

/* Dark theme: midnight sapphire glass, with strong and consistent contrast. */
#auth-screen[data-auth-theme="dark"] .auth-shell {
  border-color: rgba(177, 202, 240, .18) !important;
  background: rgba(10, 17, 32, .76) !important;
  box-shadow: 0 34px 92px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#auth-screen[data-auth-theme="dark"] .auth-brand {
  color: #f4f8ff !important;
  background:
    radial-gradient(ellipse 78% 64% at 4% 0%, rgba(75,139,255,.22), transparent 68%),
    radial-gradient(ellipse 65% 60% at 96% 100%, rgba(28,174,218,.13), transparent 70%),
    linear-gradient(145deg, #101d35 0%, #111b30 56%, #0d2137 100%) !important;
}

#auth-screen[data-auth-theme="dark"] .auth-brand-top,
#auth-screen[data-auth-theme="dark"] .auth-brand h1 {
  color: #f4f8ff !important;
}

#auth-screen[data-auth-theme="dark"] .auth-brand .auth-eyebrow {
  color: #a4c8ff !important;
}

#auth-screen[data-auth-theme="dark"] .auth-brand-copy p,
#auth-screen[data-auth-theme="dark"] .auth-brand-foot {
  color: rgba(227, 238, 255, .72) !important;
}

#auth-screen[data-auth-theme="dark"] .auth-panel-wrap {
  border-left-color: rgba(183, 207, 242, .14) !important;
  background: rgba(4, 10, 21, .22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

/* Tablet and phone: keep one clean column and prevent horizontal overflow. */
@media (max-width: 900px) {
  #auth-screen {
    padding: max(18px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    place-items: center;
  }

  #auth-screen .auth-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto;
    width: min(540px, 100%);
    max-width: 540px;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: auto;
    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-screen .auth-shell > .auth-brand {
    display: none !important;
  }

  #auth-screen .auth-shell > .auth-panel-wrap {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 100% !important;
    min-width: 0;
    min-height: 0;
    padding: 22px clamp(16px, 5vw, 28px) 24px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #auth-screen .auth-panel {
    width: 100%;
    max-width: 460px;
    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-screen .auth-panel-topbar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: clamp(22px, 4vh, 34px);
  }

  #auth-screen .auth-mobile-brand {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 9px;
    font-size: 14px;
    letter-spacing: .055em;
  }

  #auth-screen .auth-mobile-brand .auth-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  #auth-screen .auth-theme-switch {
    display: inline-flex;
    flex: 0 0 auto;
    max-width: 100%;
    gap: 2px;
    padding: 3px;
  }

  #auth-screen .auth-theme-switch button {
    min-width: 61px;
    height: 30px;
    padding: 0 7px;
    font-size: 10px;
  }

  #auth-screen .auth-heading {
    margin-bottom: 22px;
  }

  #auth-screen .auth-heading h2 {
    font-size: clamp(27px, 6.5vw, 33px);
  }

  #auth-screen .auth-heading p {
    max-width: 38ch;
    font-size: 12px;
  }

  #auth-screen .auth-form,
  #auth-screen .auth-input-wrap,
  #auth-screen .auth-submit,
  #auth-screen .auth-google,
  #auth-screen .auth-message,
  #auth-screen .auth-config-note {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #auth-screen .auth-transition-blade {
    left: -55% !important;
    width: 78% !important;
  }
}

@media (max-width: 420px) {
  #auth-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  #auth-screen .auth-shell > .auth-panel-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  #auth-screen .auth-mobile-brand {
    font-size: 13px;
  }

  #auth-screen .auth-mobile-brand .auth-mark {
    width: 34px;
    height: 34px;
  }

  #auth-screen .auth-theme-switch button {
    min-width: 58px;
    padding-inline: 6px;
  }

  #auth-screen .auth-otp-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  #auth-screen .auth-send-otp {
    min-width: 100px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen .auth-shell > .auth-brand,
  #auth-screen .auth-shell > .auth-panel-wrap {
    transition: none !important;
  }
}

/* ========================================================================
   APEX KASIR v1.4.2 — AUTH MODE / DARK NOTE REGRESSION FIX
   - Only one brand message may be visible at a time. Legacy motion.css had
     animated both .auth-brand-copy elements together during mode changes.
   - The dark helper note uses the same rounded glass treatment as Light mode.
   - The diagonal glass sweep stays subtle and never washes out the form copy.
   ======================================================================== */

/* Prevent Login and Sign Up hero copy from occupying the same visual space. */
#auth-screen .auth-shell:not(.is-signup) .auth-brand-copy--signup,
#auth-screen .auth-shell.is-signup .auth-brand-copy:not(.auth-brand-copy--signup) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

#auth-screen .auth-shell:not(.is-signup) .auth-brand-copy:not(.auth-brand-copy--signup),
#auth-screen .auth-shell.is-signup .auth-brand-copy--signup {
  display: block;
  visibility: visible;
  pointer-events: auto;
}

/* One clean entrance for the active copy; the inactive copy stays display:none. */
#auth-screen .auth-shell.is-mode-changing:not(.is-signup) .auth-brand-copy:not(.auth-brand-copy--signup) {
  animation: apexAuthBrandLoginIn 460ms cubic-bezier(.2,.8,.2,1) both !important;
}

#auth-screen .auth-shell.is-mode-changing.is-signup .auth-brand-copy--signup {
  animation: apexAuthBrandSignupIn 520ms cubic-bezier(.2,.8,.2,1) both !important;
}

@keyframes apexAuthBrandLoginIn {
  from { opacity: 0; filter: blur(3px); transform: translate3d(0, 12px, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@keyframes apexAuthBrandSignupIn {
  from { opacity: 0; filter: blur(3px); transform: translate3d(0, calc(-50% + 12px), 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, -50%, 0); }
}

/* Dark mode helper text: match Light mode's rounded, softly outlined glass pill. */
#auth-screen[data-auth-theme="dark"] .auth-config-note {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(137, 178, 239, .24) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, rgba(53, 86, 139, .22), rgba(31, 51, 83, .18)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 5px 18px rgba(0,0,0,.10) !important;
  color: #aebfd9 !important;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

/* Keep the Light mode helper's already-good rounded shape consistent. */
#auth-screen[data-auth-theme="light"] .auth-config-note {
  border-radius: 15px;
  padding: 10px 14px;
  line-height: 1.6;
}

/* A slimmer satin-glass sweep: decorative only, with readable content above it. */
#auth-screen .auth-transition-blade {
  z-index: 25 !important;
  left: -14% !important;
  width: 28% !important;
  -webkit-backdrop-filter: blur(5px) saturate(145%);
  backdrop-filter: blur(5px) saturate(145%);
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(91, 151, 244, .035) 22%,
    rgba(116, 173, 255, .12) 39%,
    rgba(220, 239, 255, .30) 49%,
    rgba(255, 255, 255, .34) 50%,
    rgba(151, 202, 255, .20) 53%,
    rgba(77, 143, 236, .08) 70%,
    transparent 100%);
  filter: drop-shadow(0 0 12px rgba(87,157,255,.18));
}

#auth-screen .auth-transition-blade::before {
  box-shadow: 0 0 13px 3px rgba(117,184,255,.32);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.56) 20%, rgba(255,255,255,.72) 50%, rgba(211,235,255,.52) 82%, transparent);
}

#auth-screen .auth-transition-blade::after {
  opacity: .45;
  filter: blur(5px);
}

#auth-screen .auth-shell.is-sweeping .auth-transition-blade {
  animation: apexAuthSoftGlassSweep 760ms cubic-bezier(.62,.02,.24,1) both !important;
}

@keyframes apexAuthSoftGlassSweep {
  0% { opacity: 0; transform: translate3d(-155%,0,0) skewX(-16deg); }
  14% { opacity: .46; }
  76% { opacity: .30; }
  100% { opacity: 0; transform: translate3d(470%,0,0) skewX(-16deg); }
}

@media (max-width: 800px) {
  #auth-screen .auth-transition-blade {
    left: -18% !important;
    width: 32% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen .auth-shell.is-mode-changing .auth-brand-copy,
  #auth-screen .auth-shell.is-sweeping .auth-transition-blade {
    animation: none !important;
  }
}
