:root {
  font-family: Geist, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #1f2633;
  background: #fbf2e4;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(#eacfb8 1.2px, transparent 1.2px) 0 0 / 40px 40px, #fbf2e4;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: #1f4f82; }
a:hover { color: #143f73; }
:focus-visible { outline: 3px solid #c65e78; outline-offset: 3px; }
[hidden] { display: none !important; }

.page { width: min(100% - 32px, 820px); margin: 24px auto 64px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.brand {
  display: inline-block;
  margin-left: 8px;
  color: #af526a;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.language-switcher { display: flex; align-items: center; gap: 8px; }
.language-switcher label { margin: 0; color: #536070; font-size: .9rem; }
.language-switcher select {
  min-height: 44px;
  max-width: 180px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #cbd5df;
  border-radius: 999px;
  background: #fffaf3;
  color: #143f73;
  cursor: pointer;
}
main {
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(31, 79, 130, .12);
  border-radius: 30px;
  background: rgba(255, 250, 243, .91);
  box-shadow: 0 24px 60px rgba(63, 67, 75, .09);
}
.eyebrow { margin: 0 0 12px; color: #af526a; font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3 { color: #143f73; }
h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
h2 { margin: 0 0 14px; font-size: 1.35rem; }
h3 { margin: 28px 0 10px; font-size: 1.1rem; }
p { line-height: 1.7; }
.intro { margin: 0 0 8px; color: #536070; font-size: 1.08rem; }
.note { margin: 0; color: #647083; font-size: .92rem; }
#status {
  margin: 26px 0 0;
  padding: 14px 18px;
  border: 1px solid #d4e2ed;
  border-radius: 16px;
  background: #edf4f8;
  color: #143f73;
}
section { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e9ded0; }
label { display: block; margin: 18px 0 7px; color: #31445d; font-weight: 700; }
input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid #cbd5df;
  border-radius: 12px;
  background: #fff;
  color: #1f2633;
  font-size: 16px;
}
input:focus { border-color: #1f4f82; }
button {
  min-height: 48px;
  margin: 12px 10px 0 0;
  padding: 0 21px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #1f4f82;
  box-shadow: 0 14px 30px rgba(31, 79, 130, .18);
  color: #fffaf3;
  font-weight: 800;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #143f73; }
button:disabled { opacity: .55; cursor: not-allowed; }
#locate, #clear-location, #logout {
  border-color: rgba(31, 79, 130, .18);
  background: rgba(255, 255, 255, .64);
  box-shadow: none;
  color: #1f4f82;
}
#locate:hover:not(:disabled), #clear-location:hover:not(:disabled), #logout:hover:not(:disabled) { background: #edf4f8; }
#sso-section a { display: inline-block; margin: 12px 0 0 8px; font-weight: 700; }
#credentials > div { padding: 15px 0; border-bottom: 1px solid #e9ded0; }
@media (max-width: 640px) {
  .page { width: min(100% - 20px, 820px); margin: 16px auto 40px; }
  .page-header { align-items: flex-start; }
  .language-switcher { flex-direction: column; align-items: flex-end; gap: 4px; }
  .language-switcher select { max-width: 150px; }
  main { border-radius: 22px; }
  button { max-width: 100%; }
}
