.auth-body {
  min-height: 100dvh;
  margin: 0;
  display: block !important;
  place-items: unset !important;
  padding: 18px 0 28px !important;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(120, 180, 255, 0.28), transparent 55%),
    radial-gradient(900px 600px at 110% 10%, rgba(90, 220, 190, 0.16), transparent 50%),
    radial-gradient(800px 500px at 50% 120%, rgba(80, 120, 255, 0.12), transparent 45%),
    #071018;
  color: #e8eef8;
}
.auth-shell {
  width: min(420px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 20px;
}
.auth-brand {
  text-align: center;
  margin-bottom: 14px;
}
.auth-brand h1 {
  margin: 8px 0 4px;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.auth-brand p {
  margin: 0;
  color: rgba(232, 238, 248, 0.62);
}
.logo-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5b8a4e, #3B4836 55%, #2e4a2a);
  box-shadow:
    8px 8px 18px rgba(0, 0, 0, 0.35),
    -6px -6px 16px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.logo-mark.logo-word {
  width: auto;
  padding: 0 20px;
  font-size: 19px;
  letter-spacing: 0.14em;
}
.auth-card,
.auth-card-single {
  padding: 16px 16px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(8, 16, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-tab {
  border: 0;
  background: transparent;
  color: rgba(232, 238, 248, 0.62);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  border-radius: 14px;
  cursor: pointer;
}
.auth-tab.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}
.auth-pane h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.auth-pane .lead {
  margin: 0 0 12px;
  color: rgba(232, 238, 248, 0.62);
  font-size: 13px;
}
.auth-pane label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  color: rgba(232, 238, 248, 0.7);
}
.auth-pane input {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 28, 0.45);
  color: #e8eef8;
  padding: 0 14px;
}
.auth-pane .btn.primary.block,
.auth-pane .btn.ghost.block {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 16px;
}
.auth-pane .btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #5b8a4e, #3B4836);
}
.auth-pane .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8eef8;
}
.auth-card .status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 16, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-card .status.is-idle { display: none; }
.auth-footnote {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(232, 238, 248, 0.55);
  font-size: 12px;
}
.auth-footnote a {
  color: #a8d89b;
  text-decoration: none;
}
.auth-footnote a:hover { text-decoration: underline; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}
.demo-fallback {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-fallback summary {
  cursor: pointer;
  color: rgba(232, 238, 248, 0.62);
  font-size: 12px;
  user-select: none;
}
html[data-theme="light"] .auth-body {
  background:
    radial-gradient(1200px 700px at 12% -10%, #dbe8d2, transparent 55%),
    radial-gradient(900px 600px at 110% 10%, #d9f3ea, transparent 50%),
    #eef2eb;
  color: #152033;
}
html[data-theme="light"] .auth-card,
html[data-theme="light"] .auth-card-single {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 12px 12px 28px rgba(160, 176, 196, 0.45), -10px -10px 24px rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .auth-pane input {
  background: #eef3f8;
  color: #152033;
}
html[data-theme="light"] .auth-pane label,
html[data-theme="light"] .auth-pane .lead,
html[data-theme="light"] .auth-tab {
  color: #5a6b57;
}
html[data-theme="light"] .auth-tabs {
  background: rgba(21, 32, 51, 0.08);
  border-color: rgba(21, 32, 51, 0.1);
}
html[data-theme="light"] .auth-tab.active {
  color: #152033;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 40, 70, 0.14);
}
html[data-theme="light"] .auth-pane .btn.ghost { color: #152033; }

html[data-theme="light"] .auth-brand p,
html[data-theme="light"] .auth-footnote {
  color: #5a6b57;
}
html[data-theme="light"] .auth-footnote a { color: #3B4836; }
html[data-theme="light"] .auth-pane h2 { color: #152033; }


/* Password reveal eye — glass match */
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 248, 0.85);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
}
.auth-inline-links {
  margin: 8px 0 0;
  font-size: 12px;
  text-align: right;
}
.auth-inline-links a {
  color: #a8d89b;
  text-decoration: none;
}
.auth-inline-links a:hover { text-decoration: underline; }
.verify-panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
html[data-theme="light"] .password-toggle {
  background: rgba(20, 40, 70, 0.06);
  color: #152033;
}
html[data-theme="light"] .auth-inline-links a { color: #3B4836; }
html[data-theme="light"] .verify-panel {
  border-top-color: rgba(20, 40, 70, 0.12);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}
.password-toggle .icon-eye[hidden],
.password-toggle .icon-eye-off[hidden] {
  display: none !important;
}
