/* Shared theme for the two standalone pages. All assets are local. */
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #111215;
  --text: #f4f4f5;
  --muted: #97979f;
  --line: #28292f;
  --red: #fa4148;
  --red-hover: #ff565d;
  --error: #ff8d91;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ff898d; outline-offset: 5px; }
::selection { background: #b72c36; color: #fff; }
.site-shell { width: min(1440px, 100%); min-height: 100svh; margin: auto; padding: 0 56px; }
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 112px; padding-block: 20px; gap: 16px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.brand-mark { width: 41px; height: 44px; color: var(--red); flex: none; }
.brand-copy { display: grid; gap: 4px; min-width: 0; }
.brand-name { font-size: 1.125rem; font-weight: 650; letter-spacing: .015em; line-height: 1.5; overflow-wrap: anywhere; }
.brand-en { color: var(--muted); font-size: .75rem; letter-spacing: .05em; font-weight: 500; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.language-control { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; margin-left: auto; padding-left: 12px; border: 1px solid #303138; border-radius: 8px; background: #14151a; color: #bdbdc6; }
.language-control svg { width: 18px; height: 18px; flex: none; }
.language-control select { width: 154px; max-width: 100%; min-height: 42px; padding: 8px 10px 8px 2px; border: 0; border-radius: 6px; background: #14151a; color: var(--text); font-size: .875rem; cursor: pointer; }
.language-control select:disabled { cursor: default; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 690px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel); }
.visual-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 48px 48px 32px; overflow: hidden; background: #0c0c0e; border-right: 1px solid var(--line); }
.visual-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 47% 65%, #55151d55, transparent 60%); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #c8a2a4; font-size: .75rem; font-weight: 500; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--red); }
.hero-title { position: relative; z-index: 2; margin: 0; font-size: clamp(2rem, 3.25vw, 2.875rem); line-height: 1.4; font-weight: 550; letter-spacing: -.035em; }
.hero-title .hero-highlight { color: var(--red); }
.hero-title, h1 { overflow-wrap: anywhere; }
.visual-panel, .form-panel { min-width: 0; }
.hero-description { position: relative; z-index: 2; margin: 15px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.energy-art { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 290px; margin: -4px -48px -4px; overflow: hidden; }
.energy-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 70%; mask-image: linear-gradient(transparent 0%, #000 16%, #000 82%, transparent 100%); }
.energy-label { position: relative; z-index: 2; display: flex; gap: 9px; align-items: center; align-self: flex-end; max-width: calc(100% - 48px); margin: 0 0 23px; padding: 10px 14px; background: #141317b8; border: 1px solid #ffffff15; border-radius: 9px; backdrop-filter: blur(12px); font-size: .75rem; line-height: 1.6; color: #d4c5c8; }
.energy-label svg { width: 15px; height: 15px; color: var(--red); }
.visual-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid #ffffff14; }
.visual-bottom strong { font-size: .8125rem; font-weight: 500; color: #b5b4bc; letter-spacing: .025em; }
.visual-bottom span { color: #73737c; font-size: .75rem; }
.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(32px, 4.5vw, 72px); background: linear-gradient(135deg, #151619, #111215 62%); }
.form-wrap { width: 100%; max-width: 388px; margin-inline: auto; }
.form-kicker { display: flex; gap: 9px; align-items: center; color: #babac2; font-size: .75rem; letter-spacing: .2em; margin-bottom: 14px; }
.form-kicker svg { width: 16px; height: 16px; color: var(--red); }
h1 { margin: 0; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.5; }
.form-description { font-size: 1rem; color: var(--muted); line-height: 1.7; margin: 9px 0 30px; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: .875rem; font-weight: 500; color: #d8d8de; margin-bottom: 10px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; pointer-events: none; top: 50%; left: 16px; transform: translateY(-50%); width: 19px; height: 19px; color: #71717b; }
.input-wrap input { display: block; width: 100%; height: 54px; border: 1px solid #323339; border-radius: 9px; padding: 0 15px 0 47px; background: #1b1c20; color: var(--text); font-size: 1rem; transition: border-color 160ms, box-shadow 160ms; }
.input-wrap input[type="password"], .input-wrap input[data-password] { padding-right: 55px; }
.input-wrap input::placeholder { color: #797982; opacity: 1; }
.input-wrap input:hover { border-color: #4a4a54; }
.input-wrap input:focus { outline: none; border-color: #ee6066; box-shadow: 0 0 0 3px #fa414814; }
.input-wrap input[aria-invalid="true"] { border-color: var(--error); }
.input-wrap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #1b1c20 inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; color: #96969f; }
.password-toggle:hover { color: var(--text); background: #ffffff08; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .eye-hidden { display: none; }
.password-toggle[aria-pressed="true"] .eye-visible { display: none; }
.password-toggle[aria-pressed="true"] .eye-hidden { display: block; }
.field-error { margin: 7px 0 0; font-size: .8125rem; line-height: 1.55; color: var(--error); }
.field-error:empty { display: none; }
.field-status { margin: 7px 0 0; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
#username { padding-right: 48px; }
.username-spinner { position: absolute; right: 18px; top: calc(50% - 9px); width: 18px; height: 18px; border: 2px solid #fa41482b; border-top-color: var(--red); border-radius: 50%; animation: username-spin .7s linear infinite; }
.username-success { position: absolute; right: 16px; top: calc(50% - 11px); width: 22px; height: 22px; color: #65d398; }
.username-success svg { display: block; width: 100%; height: 100%; }
.field-status.is-success { color: #65d398; }
#username[data-check-state="available"] { border-color: #46795c; }
.username-spinner[hidden], .username-success[hidden], .field-status[hidden] { display: none; }
@keyframes username-spin { to { transform: rotate(360deg); } }
.verification-row { display: flex; align-items: stretch; gap: 10px; }
.verification-row .input-wrap { flex: 1; min-width: 0; }
.verification-row .input-wrap input { height: 100%; min-height: 54px; }
.send-code-button { flex: 0 1 auto; min-width: 112px; max-width: 52%; min-height: 54px; padding: 10px 13px; border: 1px solid #6b353a; border-radius: 9px; background: #fa41480d; color: #ff8187; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color 160ms, background 160ms; }
.send-code-button:hover:not(:disabled) { border-color: #ff6f75; background: #fa41481a; }
.send-code-button:disabled { cursor: not-allowed; color: #9999a3; border-color: #35363e; background: #1b1c20; }
.toast-message { position: fixed; z-index: 100; top: max(24px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border: 1px solid #355344; border-radius: 10px; background: #19241f; color: #dcf2e6; font-size: .875rem; line-height: 1.6; box-shadow: 0 8px 28px #0006; pointer-events: none; animation: toast-enter 160ms ease-out; }
.toast-message[hidden] { display: none; }
.toast-message { max-width: min(640px, calc(100% - 32px)); }
.toast-message span { min-width: 0; overflow-wrap: anywhere; }
.toast-message svg { width: 20px; height: 20px; flex: none; }
.toast-message .toast-success-icon { color: #65d398; }
.toast-message .toast-error-icon { display: none; }
.toast-message[data-type="error"] { border-color: #6b353a; background: #301d21; color: #ffe2e4; }
.toast-message[data-type="error"] .toast-success-icon { display: none; }
.toast-message[data-type="error"] .toast-error-icon { display: block; color: #ff858c; }
@keyframes toast-enter { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 14px; margin-top: 29px; border: 1px solid transparent; border-radius: 9px; color: white; background: var(--red); font-size: 1rem; font-weight: 600; box-shadow: 0 4px 20px #e52f3620; transition: background 160ms, transform 160ms; }
.submit-button svg { width: 18px; height: 18px; transition: transform 160ms; }
.submit-button:hover { background: var(--red-hover); }
.submit-button:hover svg { transform: translateX(3px); }
.submit-button:active { transform: translateY(1px); }
.form-result { padding: 13px 15px; border: 1px solid #785456; border-radius: 9px; margin: 18px 0 0; background: #fa41480b; font-size: .875rem; color: #e3cacc; line-height: 1.75; }
.form-result[hidden] { display: none; }
.form-result strong { display: block; color: #faf1f2; font-weight: 550; margin-bottom: 2px; }
.switch-page { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.switch-page a { color: #ff6f75; margin-left: 7px; font-weight: 500; display: inline-block; padding: 8px 1px; }
.switch-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #ffffff0d; color: #80808a; font-size: .75rem; line-height: 1.65; }
.form-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 78px; padding: 18px 2px; font-size: .75rem; color: #7d7d86; }
.footer p { margin: 0; line-height: 1.7; }
.footer-detail { display: flex; gap: 10px; align-items: center; }
.footer-detail span:first-child { color: #adadb5; font-size: .75rem; letter-spacing: .13em; }
.footer-detail i { height: 11px; width: 1px; background: #484851; }
.login-page .form-description { margin-bottom: 36px; }
.login-page .switch-page { margin-top: 29px; }
.noscript-message { margin-bottom: 18px; color: var(--error); font-size: .875rem; line-height: 1.7; }
:is(html:lang(ja), html:lang(ko), html:lang(th)) :is(.eyebrow, .form-kicker, .brand-name, .brand-en) { letter-spacing: normal; }
@media (min-width: 1500px) { .site-shell { display: flex; flex-direction: column; justify-content: center; } .auth-layout { min-height: 720px; } }
@media (max-width: 1100px) { .site-shell { padding-inline: 32px; } .visual-panel { padding: 40px 32px 30px; } .energy-art { margin-inline: -32px; } .form-panel { padding: 44px 32px; } .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .visual-bottom { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media (max-width: 800px) {
  .site-shell { max-width: 580px; padding-inline: 24px; }
  .header { min-height: 100px; }
  .auth-layout { display: flex; flex-direction: column; min-height: 0; border-radius: 18px; }
  .visual-panel { display: none; }
  .form-panel { padding: 40px 32px 32px; }
  h1 { font-size: 1.875rem; }
  .form-description { margin-bottom: 28px; }
  .form-note { margin-top: 18px; }
  .footer { padding-block: 25px; justify-content: center; text-align: center; }
  .footer-detail { display: none; }
}
@media (max-width: 420px) {
  .site-shell { padding-inline: 18px; }
  .header { min-height: 88px; }
  .brand-mark { width: 35px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .form-panel { padding: 32px 22px 26px; }
  h1 { font-size: 1.75rem; }
  .form-description { font-size: .875rem; }
  .verification-row { gap: 8px; }
  .verification-row .input-icon { display: none; }
  .verification-row input { padding-inline: 12px; }
  .send-code-button { min-width: 106px; padding-inline: 10px; }
}
@media (max-width: 360px) { .verification-row { flex-direction: column; } .send-code-button { min-height: 46px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
