:root {
  color-scheme: light;
  --ink: #203235;
  --muted: #657478;
  --line: #dbe6e2;
  --paper: #ffffff;
  --canvas: #f4f7f4;
  --teal: #176b68;
  --teal-dark: #105653;
  --teal-soft: #e9f4f1;
  --gold: #dfad4d;
  --danger: #b64c41;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.auth-page { min-height: 100vh; padding: 34px 24px 26px; background: var(--canvas); }
.auth-shell { width: min(1100px, 100%); margin: 0 auto; }
.auth-shell-narrow { width: min(620px, 100%); }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-dark); font-size: 20px; font-weight: 800; letter-spacing: -.06em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #fff; background: var(--teal-dark); font-family: Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1; }
.brand-name { padding-top: 2px; }
.auth-layout { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.15fr); gap: clamp(42px, 8vw, 104px); align-items: center; min-height: calc(100vh - 130px); padding: 44px 0 38px; }
.auth-intro { padding: 16px 0; }
.eyebrow { margin: 0; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
.auth-intro h1, .setup-card h1 { margin: 15px 0 0; color: var(--ink); font-size: clamp(32px, 4.2vw, 52px); font-weight: 750; letter-spacing: -.065em; line-height: 1.14; }
h1 em { color: var(--teal); font-style: normal; }
.intro-copy { max-width: 400px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.trust-points { display: grid; gap: 18px; margin-top: 48px; }
.trust-point { display: flex; gap: 13px; align-items: flex-start; }
.point-icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid #c5ddd7; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-size: 13px; font-weight: 800; }
.trust-point strong, .trust-point span:last-child { display: block; }
.trust-point strong { font-size: 13px; line-height: 1.4; }
.trust-point span:last-child { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent-card { padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 14px rgba(42, 74, 72, .06); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.provider-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 10px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.step-label { margin: 0; color: #9aa9a7; font-size: 10px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.step-label span { color: var(--teal); }
.consent-card h2 { margin: 22px 0 0; font-size: 27px; letter-spacing: -.05em; line-height: 1.25; }
.card-lead { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.data-summary { display: grid; gap: 12px; margin-top: 24px; }
.summary-block { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fcfefd; }
.summary-block-muted { border-color: #eadfc8; background: #fffaf0; }
.summary-title { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; }
.summary-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 900; }
.summary-icon-save { color: var(--teal); background: var(--teal-soft); }
.summary-icon-private { color: #956c25; background: #f7e8bd; }
.summary-block ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.summary-block li::marker { color: #63a398; }
.summary-block p { margin: 11px 0 0; color: #7c6c4c; font-size: 12px; line-height: 1.65; }
.policy-row { display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; margin-top: 20px; padding: 14px 0; border-top: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
.policy-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.policy-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.policy-row strong, .policy-row span { display: block; }
.policy-row strong { font-size: 12px; }
.policy-row span { margin-top: 3px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.policy-row a { color: var(--teal); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: #4b5c5d; font-size: 12px; line-height: 1.6; cursor: pointer; }
.consent-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border: 1px solid #aac7c0; border-radius: 6px; color: transparent; background: #fff; font-size: 12px; font-weight: 900; }
.consent-check input:checked + .checkmark { border-color: var(--teal); color: #fff; background: var(--teal); }
.consent-check input:focus-visible + .checkmark { outline: 3px solid rgba(23, 107, 104, .2); outline-offset: 2px; }
.primary-action { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 13px 17px 13px 19px; border: 0; border-radius: 8px; color: #fff; background: var(--teal-dark); font-size: 13px; font-weight: 800; text-decoration: none; transition: background .18s ease; }
.primary-action:hover { background: var(--teal); }
.primary-action:focus-visible, .back-link:focus-visible, .policy-row a:focus-visible { outline: 3px solid rgba(23, 107, 104, .24); outline-offset: 3px; }
.back-link { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; text-decoration: none; }
.back-link:hover { color: var(--teal); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 13px; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.notice p { margin: 0; }
.notice-icon { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.notice-info { color: #316764; background: #edf8f4; }
.notice-info .notice-icon { color: #fff; background: var(--teal); }
.notice-error { color: #8d3d36; background: #fff0ed; }
.notice-error .notice-icon { color: #fff; background: var(--danger); }
.auth-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; border-top: 1px solid #dce6e2; color: #93a09f; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.setup-card { margin: 0 auto; }
.setup-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: #916d1c; background: #fff2d6; font-size: 25px; }
.setup-card h1 { font-size: clamp(30px, 5vw, 43px); }
.setup-card .card-lead { margin-top: 18px; font-size: 14px; }
.link-action { margin-top: 22px; }

@media (max-width: 820px) {
  .auth-page { padding: 24px 16px 20px; }
  .auth-layout { grid-template-columns: 1fr; gap: 22px; min-height: auto; padding: 40px 0 30px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { font-size: clamp(32px, 9vw, 46px); }
  .intro-copy { margin-top: 14px; }
  .trust-points { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 25px; }
  .trust-point { display: block; }
  .trust-point strong { margin-top: 8px; font-size: 11px; }
  .trust-point span:last-child { font-size: 10px; }
}

@media (max-width: 560px) {
  .auth-page { padding: 18px 12px 16px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 21px; }
  .brand-lockup { font-size: 18px; }
  .auth-layout { padding: 33px 0 24px; }
  .trust-points { display: none; }
  .consent-card { padding: 21px 17px 19px; border-radius: 20px; }
  .card-heading { align-items: flex-start; }
  .step-label { padding-top: 6px; font-size: 9px; }
  .consent-card h2 { margin-top: 19px; font-size: 24px; }
  .summary-block { padding: 14px; }
  .summary-block ul { padding-left: 19px; }
  .policy-row { grid-template-columns: 25px 1fr; }
  .policy-row a { grid-column: 2; justify-self: start; margin-top: 1px; }
  .auth-footer { font-size: 9px; }
}
