:root {
  color-scheme: light;
  --bg: #f4f0e7;
  --bg-deep: #e9e1d3;
  --surface: #fffdf9;
  --surface-soft: rgba(255, 253, 249, .72);
  --surface-strong: #f8f3e9;
  --ink: #171816;
  --ink-soft: #595a55;
  --ink-faint: #85857f;
  --line: rgba(40, 36, 26, .14);
  --line-gold: rgba(173, 126, 43, .4);
  --gold: #a87927;
  --gold-bright: #c99b45;
  --gold-pale: #ead3a1;
  --green: #477b59;
  --header-bg: rgba(250, 247, 240, .86);
  --shadow: 0 30px 90px rgba(73, 60, 35, .13);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: Inter, "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b0c;
  --bg-deep: #050607;
  --surface: #111416;
  --surface-soft: rgba(17, 20, 22, .8);
  --surface-strong: #181a1b;
  --ink: #f1ebdf;
  --ink-soft: #b6b1a7;
  --ink-faint: #80817c;
  --line: rgba(226, 210, 175, .14);
  --line-gold: rgba(204, 161, 84, .43);
  --gold: #c69a4b;
  --gold-bright: #e0bd77;
  --gold-pale: #f0dbab;
  --green: #70ad7c;
  --header-bg: rgba(9, 11, 12, .86);
  --shadow: 0 34px 90px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 8% 8%, rgba(191, 150, 77, .11), transparent 28%), radial-gradient(circle at 92% 88%, rgba(191, 150, 77, .06), transparent 26%); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--surface); border: 1px solid var(--gold); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(18px); }
.header-inner { width: min(1320px, calc(100% - 48px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line-gold); color: var(--gold-bright); font-family: var(--serif); font-size: 14px; transform: rotate(45deg); }
.brand-mark b { font-weight: 400; transform: rotate(-45deg); }
.page-context { color: var(--gold); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; }
.header-tools { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.support-link { color: var(--ink-soft); text-decoration: none; font-size: 12px; }
.support-link:hover { color: var(--gold-bright); }
.theme-switcher { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); }
.theme-switcher button { min-width: 36px; padding: 4px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 10px; }
.theme-switcher button[aria-pressed="true"] { color: var(--ink); background: var(--surface-strong); box-shadow: 0 1px 5px rgba(0, 0, 0, .1); }

.auth-main { min-height: calc(100vh - 76px); }
.auth-shell { width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 76px); margin: auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, .72fr); gap: clamp(48px, 7vw, 110px); align-items: center; padding-block: 64px; }
.auth-intro { position: relative; overflow: hidden; padding: 34px 8px 34px 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(40px, 5vw, 65px); line-height: 1.5; }
.intro-copy { max-width: 600px; margin-bottom: 38px; color: var(--ink-soft); font-size: 15px; }
.account-flow { display: grid; gap: 0; max-width: 560px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.account-flow li { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); color: var(--ink-faint); }
.account-flow li::after { content: ""; position: absolute; left: 16px; bottom: -1px; width: 18px; height: 1px; background: transparent; }
.account-flow li.current { color: var(--ink); }
.account-flow li.current::after { background: var(--gold-bright); }
.account-flow li > span { color: var(--gold); font-family: var(--mono); font-size: 10px; }
.account-flow strong { display: block; font-size: 14px; font-weight: 600; }
.account-flow small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 11px; }
.intro-note { display: grid; grid-template-columns: 24px 1fr; gap: 10px; max-width: 560px; margin-top: 28px; color: var(--ink-soft); font-size: 11px; }
.intro-note > span { color: var(--gold-bright); }
.intro-note p { margin: 0; }
.intro-note strong { color: var(--ink); font-weight: 600; }
.auth-art { position: absolute; z-index: -1; right: -30px; bottom: 30px; width: 230px; aspect-ratio: 1; opacity: .12; }
.auth-art i { position: absolute; inset: 16%; border: 1px solid var(--gold); transform: rotate(45deg); }
.auth-art i:nth-child(2) { inset: 29%; transform: rotate(15deg); }
.auth-art i:nth-child(3) { inset: 41%; border-radius: 50%; transform: none; }
.auth-art span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-bright); font-family: var(--serif); font-size: 40px; }

.auth-panel { padding: clamp(30px, 4vw, 52px); border: 1px solid var(--line); background: var(--surface-soft); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.panel-heading { margin-bottom: 28px; }
.panel-heading > p { margin-bottom: 9px; color: var(--gold); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; }
.panel-heading h2 { margin: 0 0 8px; font-size: 34px; }
.panel-heading > span { color: var(--ink-soft); font-size: 12px; }
.social-options { display: grid; gap: 11px; }
.social-button { display: grid; grid-template-columns: 45px 1fr 24px; align-items: center; min-height: 56px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.social-button:hover { transform: translateY(-1px); border-color: var(--line-gold); background: var(--surface-strong); }
.social-button:focus-visible, .submit-button:focus-visible, .password-toggle:focus-visible, .login-prompt button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.social-button strong { font-size: 13px; font-weight: 600; }
.provider-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-strong); font-weight: 700; font-size: 13px; }
.line .provider-mark { border-color: #06c755; background: #06c755; color: #fff; font-size: 8px; }
.arrow { color: var(--gold); font-size: 14px; }
.separator { display: flex; align-items: center; gap: 14px; margin: 25px 0 22px; color: var(--ink-faint); font-size: 10px; white-space: nowrap; }
.separator::before, .separator::after { content: ""; width: 100%; height: 1px; background: var(--line); }
.registration-form { display: grid; gap: 17px; }
.registration-form > label:not(.agreement) > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.registration-form input[type="email"], .registration-form input[type="password"], .registration-form input[type="text"] { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--surface); color: var(--ink); font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.registration-form input:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(191, 150, 77, .1); }
.registration-form input::placeholder { color: var(--ink-faint); }
.registration-form label > small { display: block; margin-top: 5px; color: var(--ink-faint); font-size: 10px; }
.password-field { position: relative; }
.password-field input { padding-right: 58px !important; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); padding: 6px 8px; border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 10px; }
.agreement { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: var(--ink-soft); font-size: 11px; cursor: pointer; }
.agreement input { width: 15px; height: 15px; margin: 4px 0 0; accent-color: var(--gold); }
.agreement a { text-underline-offset: 3px; text-decoration-color: var(--gold); }
.submit-button { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-top: 3px; padding: 12px 20px; border: 1px solid transparent; background: linear-gradient(135deg, var(--gold-pale), var(--gold-bright)); color: #17130b; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .2s, filter .2s; }
.submit-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.shared-account-note { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; }
.login-prompt { margin-top: 21px; color: var(--ink-soft); text-align: center; font-size: 12px; }
.login-prompt button { padding: 0; border: 0; background: transparent; color: var(--gold-bright); cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.prototype-message { min-height: 22px; margin: 14px 0 -10px; color: var(--gold-bright); text-align: center; font-size: 11px; }
.field-heading { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; }
.field-heading b { font-weight: 600; }
.field-heading button { padding: 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.remember-me { margin-top: -2px; }
.security-note { border-left: 2px solid var(--gold); }
.register-prompt a { color: var(--gold-bright); font-weight: 700; text-underline-offset: 4px; }
.member-demo-link { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 11px 14px; border: 1px solid var(--line-gold); color: var(--gold-bright); text-decoration: none; font-size: 10px; font-weight: 700; }

.site-footer { width: min(1320px, calc(100% - 48px)); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 25px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; gap: 34px; padding-block: 48px; }
  .auth-intro { padding: 10px 0; }
  .intro-copy { margin-bottom: 28px; }
  .account-flow { max-width: none; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .account-flow li { grid-template-columns: 1fr; gap: 5px; align-content: center; min-height: 104px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 0; }
  .account-flow li:last-child { border-right: 0; }
  .account-flow li::after { left: 14px; }
  .intro-note { max-width: none; }
  .auth-art { right: 20px; bottom: -5px; }
  .auth-panel { width: min(100%, 620px); margin: auto; }
}

@media (max-width: 620px) {
  .header-inner, .auth-shell, .site-footer { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { font-size: 11px; }
  .brand-mark { width: 25px; height: 25px; }
  .page-context, .support-link { display: none; }
  .header-tools { margin-left: auto; }
  .theme-switcher button { min-width: 32px; padding-inline: 6px; }
  .auth-main { min-height: calc(100vh - 64px); }
  .auth-shell { min-height: auto; padding-block: 36px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  .intro-copy { font-size: 13px; }
  .account-flow { display: grid; grid-template-columns: 1fr; border-bottom: 0; }
  .account-flow li { grid-template-columns: 42px 1fr; min-height: 68px; padding: 6px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-flow li::after { left: 13px; }
  .auth-art { display: none; }
  .auth-panel { padding: 28px 20px; }
  .panel-heading h2 { font-size: 30px; }
  .separator { font-size: 9px; }
  .field-heading { align-items: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; padding-block: 24px; }
  .site-footer nav { flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}



/* Laravel authentication integration */
.alert { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; }
.alert.success { border-color: var(--green); color: var(--green); }
.alert.error { border-color: #a44f45; color: #b85a4f; }
.alert ul { margin: 7px 0 0; padding-left: 18px; }
.social-button:disabled { transform: none; border-color: var(--line); cursor: not-allowed; opacity: .48; }
.coming-soon { color: var(--ink-faint); font-family: var(--mono); font-size: 8px; }
.field-heading a { color: var(--gold); font-size: 10px; font-weight: 400; text-underline-offset: 3px; }
.registration-form input[readonly] { color: var(--ink-soft); background: var(--surface-strong); }
.password-requirements { padding: 13px 15px; border: 1px solid var(--line); background: var(--surface-strong); }
.password-requirements strong { font-size: 10px; }
.password-requirements ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.password-requirements li { color: var(--ink-faint); font-size: 9px; }
.password-requirements li::before { content: "◇"; margin-right: 6px; color: var(--line-gold); }
.password-requirements li.met { color: var(--green); }
.password-requirements li.met::before { content: "✓"; color: var(--green); }
.verification-address { margin: 0 0 24px; padding: 17px; border: 1px solid var(--line); background: var(--surface); }
.verification-address span { display: block; color: var(--ink-faint); font-size: 10px; }
.verification-address strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 13px; }
.full-button { width: 100%; }
.logout-action { margin-top: 20px; text-align: center; }
.logout-action button { padding: 0; border: 0; background: transparent; color: var(--gold-bright); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.login-prompt a { color: var(--gold-bright); font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 620px) {
  .password-requirements ul { grid-template-columns: 1fr; }
}

