:root {
  --cream: #fffaf1;
  --cream-deep: #f6e8d5;
  --paper: rgba(255, 252, 245, .92);
  --apricot: #efc49e;
  --terracotta: #c75a2b;
  --terracotta-deep: #9f3f21;
  --coffee: #3d2922;
  --muted: #806b60;
  --mist: #dcebf1;
  --mist-deep: #6f95a7;
  --line: rgba(166, 98, 60, .22);
  --shadow: 0 24px 70px rgba(83, 57, 41, .12);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--coffee);
  background:
    radial-gradient(circle at 12% 7%, rgba(241, 190, 139, .2), transparent 25rem),
    radial-gradient(circle at 92% 13%, rgba(188, 218, 230, .32), transparent 27rem),
    linear-gradient(150deg, #fffdf9 0%, var(--cream) 57%, #f8efe3 100%);
  font-family: var(--serif);
}

button, input { font: inherit; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(77, 125, 148, .58);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--coffee);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.traveler-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 28px clamp(22px, 5vw, 78px) 150px;
  overflow: hidden;
}
.traveler-shell::before,
.traveler-shell::after {
  position: absolute;
  z-index: -2;
  content: "";
  width: 350px;
  height: 160px;
  border: 2px dashed rgba(206, 104, 49, .34);
  border-color: rgba(206, 104, 49, .34) transparent transparent transparent;
  border-radius: 50%;
  pointer-events: none;
}
.traveler-shell::before { top: 175px; left: -165px; transform: rotate(20deg); }
.traveler-shell::after { top: 260px; right: -150px; transform: rotate(-26deg); }

.traveler-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr);
  align-items: center;
  gap: 20px;
}
.back-link,
.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--muted);
  font: 700 14px/1 var(--sans);
  text-decoration: none;
}
.back-link span:first-child { color: var(--terracotta); font-size: 20px; }
.secure-note { justify-self: end; }
.secure-note i {
  position: relative;
  width: 15px;
  height: 12px;
  border: 2px solid var(--terracotta);
  border-radius: 3px;
}
.secure-note i::before {
  position: absolute;
  content: "";
  left: 2px;
  top: -9px;
  width: 7px;
  height: 8px;
  border: 2px solid var(--terracotta);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}
.brand-capsule {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 6px 22px 6px 7px;
  border: 1px solid rgba(199, 90, 43, .22);
  border-radius: 999px;
  background: rgba(255, 248, 237, .92);
  box-shadow: 0 12px 30px rgba(103, 70, 50, .1);
  text-decoration: none;
}
.brand-capsule img { display: block; width: 54px; height: 54px; object-fit: contain; }
.brand-capsule span { display: grid; gap: 3px; }
.brand-capsule strong { font-size: 21px; letter-spacing: .15em; line-height: 1; }
.brand-capsule small { color: #69554c; font: 700 8px/1 var(--sans); letter-spacing: .22em; }

.traveler-main { position: relative; z-index: 2; width: min(1120px, 100%); margin: 0 auto; }
.welcome-copy { margin: clamp(56px, 8vw, 94px) auto 28px; text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  color: #9d6c54;
  font: 700 10px/1.3 var(--sans);
  letter-spacing: .22em;
}
.welcome-copy h1,
.member-hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.18; letter-spacing: .1em; }
.welcome-copy > p:nth-of-type(2) { margin: 14px 0 0; color: #665047; font-size: clamp(17px, 2vw, 22px); letter-spacing: .08em; }
.route-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--terracotta); }
.route-line span { width: 42px; height: 1px; background: rgba(199, 90, 43, .38); }
.route-line b { font-size: 20px; font-weight: 400; }

.auth-card {
  width: min(630px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.45), var(--shadow);
  backdrop-filter: blur(14px);
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin: -12px 0 34px;
  padding: 5px;
  border-radius: 999px;
  background: #f3e9db;
}
.auth-tabs a {
  min-height: 45px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font: 700 15px/1 var(--sans);
  text-decoration: none;
}
.auth-tabs a[aria-current="page"] { color: var(--terracotta-deep); background: #fffdf8; box-shadow: 0 5px 14px rgba(86, 58, 41, .08); }
.auth-heading { text-align: center; }
.auth-heading h2 { margin: 0; font-size: 34px; letter-spacing: .1em; }
.auth-heading > p:last-child { max-width: 460px; margin: 11px auto 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.auth-form { display: grid; gap: 18px; margin-top: 30px; }
.auth-form label { display: grid; gap: 8px; color: #5c463c; font: 700 14px/1.3 var(--sans); }
.auth-form label > span:first-child { display: flex; justify-content: space-between; gap: 12px; }
.auth-form label small { color: #9c8175; font-weight: 500; }
.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(145, 96, 66, .24);
  border-radius: 15px;
  color: var(--coffee);
  background: rgba(255,255,255,.8);
  font: 500 16px/1 var(--sans);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-form input:hover { border-color: rgba(199, 90, 43, .42); }
.auth-form input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(199, 90, 43, .1); }
.password-field { position: relative; display: block !important; }
.password-field input { padding-right: 72px; }
.password-field button {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 58px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--terracotta-deep);
  background: #f8eadc;
  font: 700 13px/1 var(--sans);
  cursor: pointer;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 56px;
  padding: 0 25px;
  border-radius: 999px;
  font: 700 16px/1 var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
}
.primary-button {
  margin-top: 5px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #d8723b, #ad4324);
  box-shadow: 0 14px 28px rgba(171, 66, 32, .22);
}
.secondary-button { border: 1px solid rgba(199, 90, 43, .28); color: var(--terracotta-deep); background: rgba(255,252,245,.84); }
.auth-help,
.privacy-note { margin: 22px 0 0; color: var(--muted); font: 500 13px/1.7 var(--sans); text-align: center; }
.auth-help a { color: var(--terracotta-deep); font-weight: 700; }
.privacy-note { padding-top: 19px; border-top: 1px solid rgba(151, 99, 69, .15); }
.identity-warning {
  margin: 22px 0 -5px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #665349;
  background: #edf4f6;
  font: 500 13px/1.75 var(--sans);
}
.notice {
  margin: 0 0 24px;
  padding: 14px 17px;
  border-radius: 14px;
  font: 600 14px/1.65 var(--sans);
}
.notice.error { color: #842f25; background: #fce9e3; }
.notice.success { color: #476852; background: #eaf3e9; }

.member-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin: clamp(62px, 9vw, 105px) 0 34px;
}
.member-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.member-hero > div > p:last-child { max-width: 700px; margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.dashboard-notice { margin-bottom: 18px; }
.verification-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 21px 24px;
  border: 1px solid rgba(185, 110, 65, .2);
  border-radius: 22px;
  background: rgba(249, 232, 211, .72);
}
.verification-card > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--terracotta); background: #fffaf1; font: 24px/1 var(--sans); }
.verification-card h2 { margin: 0 0 6px; font-size: 19px; }
.verification-card p { margin: 0; color: var(--muted); font: 500 13px/1.65 var(--sans); }
.verification-card a { color: var(--terracotta-deep); font: 700 14px/1.4 var(--sans); white-space: nowrap; }
.account-strip {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: 0 16px 42px rgba(83, 57, 41, .08);
}
.account-strip > div { display: grid; gap: 8px; padding: 22px 24px; background: rgba(255,252,246,.92); }
.account-strip span { color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: .08em; }
.account-strip strong,
.account-strip a { overflow-wrap: anywhere; font: 700 15px/1.45 var(--sans); }
.account-strip a { color: var(--terracotta-deep); }
.is-good { color: #507258; }
.is-pending { color: #a6502c; }

.service-section { margin-top: 48px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 34px; letter-spacing: .08em; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); font: 500 13px/1.7 var(--sans); text-align: right; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 285px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.42), 0 18px 45px rgba(83,57,41,.08);
}
.service-card::after { position: absolute; content: ""; right: -42px; bottom: -58px; width: 190px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.32); }
.service-card.warm { background: linear-gradient(140deg, #fffdf8, #f8e1c9); }
.service-card.blue { border-color: rgba(94, 138, 157, .24); background: linear-gradient(140deg, #fbfeff, #dcebf1); }
.service-card.clay { background: linear-gradient(140deg, #fffaf2, #f0c9ad); }
.service-card.cream { background: linear-gradient(140deg, #fffdf9, #f2eadf); }
.service-number { position: absolute; top: 28px; right: 30px; color: rgba(109, 77, 62, .42); font: 700 12px/1 var(--sans); }
.service-kicker { margin: 0 0 7px; color: #9d6c54; font: 700 9px/1 var(--sans); letter-spacing: .18em; }
.service-card h3 { margin: 0; font-size: 30px; }
.service-status-detail { display: block; margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.8; overflow-wrap: anywhere; }
.service-card > a, .service-card > .disabled-link { margin-top: auto; }
.service-card > p:not(.service-kicker) { margin: 10px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-card > strong { position: relative; z-index: 1; display: block; margin-bottom: 24px; font: 700 14px/1.5 var(--sans); }
.service-card > a,
.disabled-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--terracotta);
  font: 700 14px/1 var(--sans);
  text-decoration: none;
}
.service-card.blue > a { background: var(--mist-deep); }
.disabled-link { color: var(--muted); background: rgba(255,255,255,.6); }

.traveler-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; margin: 55px auto 0; color: var(--muted); font-size: 13px; }
.traveler-footer i { width: 42px; height: 1px; background: rgba(148, 94, 64, .3); }
.coast { position: absolute; z-index: -1; inset: auto 0 0; height: 145px; pointer-events: none; }
.coast i { position: absolute; left: -4%; width: 108%; height: 70px; border-top: 5px solid rgba(103, 162, 190, .5); border-radius: 50%; }
.coast i:first-child { bottom: 25px; }
.coast i:nth-child(2) { bottom: 4px; left: 5%; border-top-width: 3px; opacity: .65; }
.coast span { position: absolute; left: -3%; bottom: -80px; width: 108%; height: 150px; border-radius: 50% 50% 0 0; background: rgba(239, 196, 153, .46); transform: rotate(-1deg); }
.coast b { position: absolute; right: 9%; bottom: 29px; width: 30px; height: 63px; border: 2px solid #8e654e; border-radius: 4px 4px 1px 1px; background: repeating-linear-gradient(155deg, #fff8e9 0 14px, #d7773e 15px 24px); }
.coast b::before { position: absolute; content: ""; left: -6px; top: -14px; width: 38px; height: 14px; border: 2px solid #8e654e; border-radius: 6px; background: #f4c26d; }

@media (max-width: 760px) {
  .traveler-shell { padding: 17px 15px 120px; }
  .traveler-header { grid-template-columns: 46px 1fr 46px; gap: 7px; }
  .back-link { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,250,242,.8); }
  .back-link span:last-child,
  .secure-note { display: none; }
  .brand-capsule { min-height: 52px; padding: 5px 12px 5px 5px; gap: 7px; }
  .brand-capsule img { width: 42px; height: 42px; }
  .brand-capsule strong { font-size: 16px; }
  .brand-capsule small { font-size: 6px; }
  .welcome-copy { margin-top: 48px; }
  .welcome-copy h1 { font-size: 39px; letter-spacing: .06em; }
  .auth-card { padding: 27px 20px; border-radius: 25px; }
  .auth-tabs { margin-top: -9px; }
  .member-hero { align-items: flex-start; flex-direction: column; margin-top: 52px; }
  .member-hero h1 { font-size: 38px; letter-spacing: .05em; }
  .member-hero form,
  .member-hero .secondary-button { width: 100%; }
  .verification-card { grid-template-columns: 42px 1fr; gap: 14px; padding: 19px; }
  .verification-card > span { width: 42px; height: 42px; }
  .verification-card a { grid-column: 1 / -1; justify-self: stretch; min-height: 44px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.68); }
  .account-strip { grid-template-columns: 1fr; }
  .account-strip > div { padding: 19px 21px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 265px; padding: 28px; }
  .traveler-footer { display: grid; gap: 7px; text-align: center; }
  .traveler-footer i { display: none; }
}

@media (max-width: 390px) {
  .brand-capsule span { display: none; }
  .brand-capsule { padding-right: 5px; }
  .welcome-copy h1 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Shared island authentication: login and email verification use the same shell. */
.verification-welcome h1 { font-size: clamp(34px, 4.5vw, 54px); }
.verification-welcome > p:nth-of-type(2) { font-size: clamp(15px, 1.8vw, 19px); line-height: 1.8; }
.email-auth-card .auth-heading h2 { font-size: clamp(26px, 3vw, 32px); }
.verification-identity { margin: 26px 0 20px; padding: 18px 20px; border-radius: 16px; background: #f3eadc; font-family: var(--sans); }
.verification-identity span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.verification-identity strong { display: block; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; }
.verification-copy, .verification-complete p { color: var(--muted); font: 500 14px/1.9 var(--sans); }
.verification-send .secondary-button { width: 100%; min-height: 48px; font-size: 14px; text-decoration: none; }
.verification-code { gap: 14px; margin-top: 26px; }
.verification-code input { text-align: center; letter-spacing: .12em; }
.verification-code input::placeholder { letter-spacing: .04em; }
.verification-hint { margin: -4px 0 0; color: var(--muted); font: 400 12px/1.8 var(--sans); }
.verification-gift-note { padding: 16px 18px; border-radius: 14px; background: #edf4f6; font: 500 13px/1.9 var(--sans); }
.verification-gift-note strong { color: #456e7c; }
.verification-gift-note p { margin: 6px 0 0; color: #665349; }
.verification-complete { text-align: center; margin: 26px 0; }
.verification-complete > span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 15px; border-radius: 50%; color: #476852; background: #eaf3e9; font: 24px/1 var(--sans); }
.verification-return { width: 100%; text-decoration: none; gap: 12px; line-height: 1.6; padding: 14px 18px; text-align: center; }
