/* 11-06 auth parity; loaded exclusively by base_auth_1106.html. */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #15201c;
  --ink-2: #586460;
  --ink-3: #889390;
  --line: #e2e9e5;
  --line-2: #d2ddd8;
  --accent: #176b55;
  --on-accent: #ffffff;
  --ok: #34b27b;
  --warn: #c9821a;
  --danger: #a64242;
  --r: 14px;
  color-scheme: light;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro TC",
    "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-switcher {
  flex: 0 0 auto;
}

.language-switcher form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 4px 18px rgba(21, 32, 28, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.language-switcher select {
  min-height: 2.25rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.8125rem;
}

.language-switcher form.is-auto .text-button {
  display: none;
}

.language-switcher .text-button {
  min-height: 2.25rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}


.auth-page {
  --bg: #e2e2e2;
  --surface: #fff;
  --ink: #2a2a2a;
  --ink-2: #646464;
  --ink-3: #696969;
  --accent: #2a2a2a;
  --line: #e2e2e2;
  --line-2: #d2d2d2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(38px + env(safe-area-inset-top))
    calc(54px + env(safe-area-inset-right))
    calc(48px + env(safe-area-inset-bottom))
    calc(54px + env(safe-area-inset-left));
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", sans-serif;
  font-synthesis: none;
  line-height: 1.65;
}

.auth-shell { width: min(100%, 520px); }
.auth-shell--login { width: min(100%, 1200px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.auth-toolbar { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.auth-card {
  min-width: 0;
  padding: 40px;
  border: 0;
  border-radius: 34px;
  background: #fff;
  box-shadow: none;
}
.auth-layout > .auth-card { padding-top: 24px; }
.auth-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; font-size: 25.6px; font-weight: 600; letter-spacing: .12em; }
.auth-brand span { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 400; letter-spacing: .12em; }
.auth-eyebrow { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; font-weight: 400; letter-spacing: .08em; }
.auth-toolbar--brand { align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.auth-toolbar--brand .auth-eyebrow { margin: 0; }
.auth-card h1 { margin: 0 0 24px; font-size: 48px; font-weight: 400; line-height: 1.12; letter-spacing: -.06em; overflow-wrap: anywhere; }
.auth-intro { margin: 0 0 28px; color: var(--ink-2); font-size: 14px; line-height: 1.65; text-wrap: balance; }
.auth-light-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px;
  border-radius: 34px;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16);
}
/* CSS light field: amber centre, coral/rose, cool blue edge, then white fog. */
.auth-light-card::before,
.auth-light-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.auth-light-card::before {
  background:
    radial-gradient(ellipse at 45% 67%, #eb981d 0%, transparent 52%),
    radial-gradient(ellipse at 78% 76%, #f86726 0%, transparent 58%),
    radial-gradient(ellipse at 85% 35%, #d2a9bc 0%, transparent 64%),
    radial-gradient(ellipse at 24% 8%, #eed5bd 0%, transparent 65%),
    linear-gradient(125deg, #b6c5d3, #d2bbba);
}
.auth-light-card::after {
  background: radial-gradient(ellipse at 50% 48%, transparent 44%, rgb(255 255 255 / .025)), linear-gradient(rgb(255 255 255 / .035), rgb(255 255 255 / .035));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16);
}
.auth-light-card .auth-brand { margin-bottom: 80px; }
.auth-light-card .auth-brand span { color: #4e4e4e; }
.auth-welcome { max-width: 8em; margin: 0; font-size: clamp(40px, 4vw, 54.72px); font-weight: 400; line-height: 1.3; letter-spacing: -.06em; text-wrap: balance; }
.auth-light-dots {
  height: 46px;
  margin-top: auto;
  background: radial-gradient(circle, rgb(255 255 255 / .65) 1.6px, transparent 1.8px) left bottom / 10px 10px;
}

.auth-page .language-switcher form { gap: 12px; padding: 0; border: 0; border-radius: 999px; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.auth-page .language-switcher select { max-width: 100%; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #f3f3f3; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.auth-page .language-switcher .text-button { min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #f3f3f3; color: var(--ink); font-size: 14px; font-weight: 400; }
.auth-page .form-stack { gap: 24px; }
.auth-page .form-stack label:not(.checkbox-label),
.auth-page .password-control { gap: 14px; }
.auth-page .form-stack label:not(.checkbox-label),
.auth-page .password-control > label { color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.65; }
.auth-page .form-stack input:not([type="hidden"]):not([type="checkbox"]),
.auth-page .form-stack select { min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: #f3f3f3; color: var(--ink); font-size: 16px; line-height: 1.65; }
.auth-page .password-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-right: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f3f3f3;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-page .form-stack .password-field input:not([type="hidden"]):not([type="checkbox"]) {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.auth-page .password-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(42 42 42 / .12); }
.auth-page .form-stack .password-field input:focus-visible { outline: none; }
.auth-page .password-toggle { position: static; flex: 0 0 44px; transform: none; border-radius: 50%; color: var(--ink-2); }
.auth-page .password-toggle:hover { background: #e2e2e2; color: var(--ink); }
.auth-page .form-stack input:focus,
.auth-page .form-stack select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(42 42 42 / .12); }
.auth-page :focus-visible { outline: 3px solid #2a2a2a; outline-offset: 4px; }
.auth-page .language-switcher select:focus-visible { outline: 3px solid #2a2a2a; }
.auth-page .checkbox-label { gap: 12px; min-height: 24px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.auth-page .checkbox-label input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #2a2a2a; }
.auth-page .button-primary { min-height: 48px; padding: 10px 18px; border-radius: 999px; background: #2a2a2a; color: #fff; font-size: 16px; font-weight: 400; line-height: 1.65; }
.auth-page .button-primary:hover { background: #414141; }
.auth-page .form-error { margin: 0 0 28px; padding: 16px 20px; border: 0; border-radius: 20px; background: #f8eded; color: #913535; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-page .field-help { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; text-wrap: balance; }

@supports (corner-shape: squircle) {
  .auth-card, .auth-light-card { corner-shape: squircle; }
}
@media (max-width: 1023px) {
  .auth-shell--login { max-width: 600px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-light-card { padding: 24px; }
  .auth-light-card .auth-brand { margin-bottom: 24px; }
  .auth-welcome { font-size: 34.4px; }
  .auth-light-dots { display: none; }
}
@media (max-width: 767px) {
  .auth-page { padding: calc(23px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)); }
  .auth-layout { gap: 20px; }
  .auth-card { padding: 24px 20px; border-radius: 28px; }
  .auth-layout > .auth-card { padding-top: 20px; }
  .auth-light-card { padding: 20px; border-radius: 28px; }
  .auth-brand { gap: 8px; font-size: 22.4px; }
  .auth-light-card .auth-brand { margin-bottom: 16px; }
  .auth-welcome { max-width: none; font-size: 28px; line-height: 1.3; }
  .auth-toolbar { margin-bottom: 24px; }
  .auth-toolbar--brand { margin-bottom: 16px; }
  .auth-eyebrow { margin-bottom: 16px; }
  .auth-card h1 { margin-bottom: 20px; font-size: 34.4px; }
  .auth-intro { margin-bottom: 24px; }
  .auth-page .form-stack { gap: 20px; }
  .auth-page .form-stack label:not(.checkbox-label),
  .auth-page .password-control { gap: 12px; }
  .auth-page .form-error { margin-bottom: 24px; }
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-stack label:not(.checkbox-label) {
  display: grid;
  gap: 0.4rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.password-control {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
}

.password-control > label {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.password-field {
  position: relative;
  display: block;
  min-width: 0;
}

.form-stack input:not([type="hidden"]):not([type="checkbox"]),
.form-stack select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-stack .password-field input:not([type="hidden"]):not([type="checkbox"]) {
  padding-right: 3.5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--accent);
}

.password-eye-slash {
  visibility: hidden;
}

.password-toggle[aria-pressed="true"] .password-eye-slash {
  visibility: visible;
}

.form-stack input:focus,
.form-stack select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--accent) 15%, transparent);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.checkbox-label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}


.field-help,
.muted {
  margin: -0.35rem 0 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  font-size: 0.875rem;
}

.auth-layout > .auth-light-card { order: -1; }

/* WebKit native select ignores min-height; preserve the 11-06 44px control. */
.auth-page .language-switcher select { height: 44px; }
