:root {
  color-scheme: light;
  --jade: #0b1c1b;
  --ink: #102c2a;
  --paper: #f7f5ef;
  --gold: #c7a363;
  --muted: #777b77;
  --border: #c8b99f;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: weight;
}
* { box-sizing: border-box; }
body, h1, p { margin: 0; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #aa7d30; outline-offset: 4px; }
.gateway { display: grid; grid-template-columns: 52.6% 47.4%; min-height: 100svh; }
.sanctum { min-height: 100svh; position: relative; overflow: hidden; isolation: isolate; color: #f3e5bc; background: radial-gradient(ellipse at 49% 43%, #23382a 0%, #142c26 29%, #0b201d 57%, #071a18 100%); }
.sanctum::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .035; background-image: radial-gradient(#bdaa75 .45px, transparent .65px); background-size: 3px 3px; pointer-events: none; }
.brand { position: absolute; z-index: 2; display: flex; align-items: center; gap: 15px; top: 28px; left: 44px; font-family: var(--serif); font-size: 32px; letter-spacing: .22em; white-space: nowrap; }
.brand img { display: block; width: 53px; height: 57px; object-fit: contain; }
.artifact-stage { position: absolute; width: min(88%, 65svh, 690px); aspect-ratio: 1; left: 51.2%; top: 9.5svh; transform: translateX(-50%); }
.artifact { position: absolute; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 22px #0003); }
.orbit { position: absolute; border: 1px solid #bd984b80; border-radius: 50%; pointer-events: none; }
.orbit-outer { inset: 5%; }
.orbit-inner { inset: 12%; border-style: dotted; border-color: #bd984b70; }
.orbit-point { position: absolute; width: 8px; height: 8px; border: 1px solid var(--gold); border-radius: 50%; background: var(--jade); }
.point-top { top: 4.5%; left: calc(50% - 4px); }
.point-left { left: 4.5%; top: calc(50% - 4px); }
.point-right { right: 4.5%; top: calc(50% - 4px); }
.frame { position: absolute; inset: 12% 7.8% 9.8%; pointer-events: none; }
.frame i { position: absolute; width: 23px; height: 23px; border-color: var(--gold); border-style: solid; border-width: 0; }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-words { position: absolute; bottom: 12.3%; left: 7.2%; width: 88%; text-align: center; font-family: var(--serif); }
.poem { font-size: clamp(27px, 3.13vw, 48px); line-height: 1.4; letter-spacing: .1em; white-space: nowrap; }
.caption { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; font-size: 20px; line-height: 1.5; letter-spacing: .18em; }
.caption span { width: 51px; height: 1px; background: #c7a363a0; }
.brand-en { position: absolute; bottom: 38px; left: 7.3%; color: var(--gold); font-family: Georgia, serif; font-size: 13px; letter-spacing: .33em; }
.auth-panel { display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; min-height: 100svh; background: radial-gradient(ellipse at 50% 47%, #fffdf9 0%, var(--paper) 77%); padding: 130px 0 108px 36px; }
.auth-content { width: min(71.2%, 500px); }
.form-heading { text-align: center; }
.form-heading h1 { font-family: var(--serif); font-size: clamp(36px, 3.65vw, 56px); font-weight: 700; line-height: 1.35; letter-spacing: .06em; white-space: nowrap; }
.form-heading p { margin-top: 14px; font-family: var(--serif); font-size: 20px; line-height: 1.7; letter-spacing: .08em; color: #626865; white-space: nowrap; }
#login-form { margin-top: 51px; }
.field + .field { margin-top: 30px; }
.field > label { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: 18px; letter-spacing: .14em; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 50%; left: 22px; width: 23px; height: 23px; color: #777972; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { display: block; width: 100%; height: clamp(54px, 6.64svh, 68px); border: 1px solid var(--border); border-radius: 12px; padding: 0 53px 0 70px; background: #ffffffbd; color: var(--ink); font-family: var(--serif); font-size: 18px; letter-spacing: .06em; outline: none; transition: border-color .18s, box-shadow .18s; }
.input-wrap input::placeholder { color: #878984; opacity: 1; }
.input-wrap input:hover { border-color: #a3916e; }
.input-wrap input:focus { border-color: #9e7b40; box-shadow: 0 0 0 3px #c7a36326; }
.input-wrap input[aria-invalid="true"] { border-color: #a2533e; }
.reveal { display: grid; place-items: center; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 43px; height: 43px; border: 0; border-radius: 8px; background: transparent; color: #72766f; }
.reveal:hover { color: var(--ink); background: #c7a36314; }
.reveal svg { width: 24px; height: 24px; }
.eye-slash { display: none; }
.reveal[aria-pressed="true"] .eye-slash { display: block; }
.remember { display: flex; align-items: center; width: fit-content; min-height: 30px; gap: 14px; margin-top: 24px; font-family: var(--serif); font-size: 18px; color: #626865; cursor: pointer; }
.remember input { appearance: none; width: 23px; height: 23px; margin: 0; border: 1px solid #878981; border-radius: 4px; background: #fff8; cursor: pointer; }
.remember input:checked { border-color: var(--ink); background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4 10-10' fill='none' stroke='%23f6f0dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.primary { display: flex; align-items: center; justify-content: center; gap: 26px; position: relative; width: 100%; min-height: clamp(54px, 6.64svh, 68px); margin-top: 28px; padding: 12px 25px; border: 1px solid transparent; border-radius: 10px; background: #0d302c; color: #fff8df; font-family: var(--serif); font-size: 21px; line-height: 1.4; letter-spacing: .15em; box-shadow: 0 2px 3px #071c1810; transition: background .18s, transform .18s; }
.primary:hover:not(:disabled) { background: #18433b; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary:disabled { opacity: .75; }
.button-arrow { width: 26px; height: 26px; stroke-width: 1.3; }
.spinner { display: none; width: 21px; height: 21px; border: 1.5px solid #fff5; border-top-color: #fff8df; border-radius: 50%; animation: spin .8s linear infinite; }
.primary[aria-busy="true"] .spinner { display: block; }
.primary[aria-busy="true"] .button-arrow { display: none; }
.feedback { margin-top: 16px; color: #984c38; font-size: 14px; line-height: 1.7; }
.access-note { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 31px; font-family: var(--serif); font-size: 17px; line-height: 1.6; letter-spacing: .05em; color: #747971; }
.access-note svg { width: 21px; height: 23px; flex-shrink: 0; }
.copyright { position: absolute; bottom: 38px; right: 7.6%; font-family: var(--serif); font-size: 14px; color: #747971; letter-spacing: .02em; }
.session-content { text-align: center; }
.verified-mark { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 28px; color: #315d47; border: 1px solid #c7a36380; border-radius: 50%; background: #e9eee4; }
.verified-mark svg { width: 32px; height: 32px; }
.signed-in-as { margin-top: 32px; font-size: 15px; color: var(--muted); }
.signed-in-as strong { margin-left: 10px; color: var(--ink); font-weight: 500; }
.session-content .primary { margin-top: 42px; }
.desktop-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.session-content .secondary { margin-top: 18px; border-color: var(--border); background: transparent; color: var(--ink); box-shadow: none; }
.secondary:hover:not(:disabled) { background: #c7a36314; }
.secondary .spinner { border-color: #102c2a40; border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 801px) and (max-height: 850px) {
  .auth-panel { padding-top: 100px; padding-bottom: 100px; }
  .form-heading h1 { font-size: 40px; }
  .form-heading p { margin-top: 10px; font-size: 16px; }
  #login-form { margin-top: 32px; }
  .field + .field { margin-top: 22px; }
  .field > label { font-size: 16px; margin-bottom: 9px; }
  .remember { margin-top: 18px; font-size: 16px; }
  .primary { margin-top: 22px; font-size: 19px; }
  .access-note { margin-top: 24px; font-size: 15px; }
  .poem { font-size: clamp(25px, 2.8vw, 42px); }
  .caption { font-size: 16px; margin-top: 12px; }
  .brand { font-size: 28px; left: 32px; top: 21px; }
  .brand-en, .copyright { bottom: 25px; }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .auth-content { width: 78%; }
  .form-heading p { font-size: 16px; letter-spacing: .02em; }
  .poem { letter-spacing: .02em; }
  .caption { gap: 12px; font-size: 16px; letter-spacing: .08em; }
  .caption span { width: 26px; }
}
@media (max-width: 800px) {
  .gateway { display: block; }
  .sanctum { min-height: 0; height: 212px; }
  .brand { top: 31px; left: 28px; gap: 12px; font-size: 27px; letter-spacing: .15em; }
  .brand img { width: 37px; height: 43px; }
  .artifact-stage { width: 182px; top: 12px; left: auto; right: 2px; transform: none; opacity: .9; }
  .orbit-point { width: 4px; height: 4px; }
  .point-left, .point-top, .point-right { display: none; }
  .hero-words { bottom: 51px; left: 30px; width: auto; text-align: left; }
  .poem { max-width: 210px; font-size: 18px; letter-spacing: .05em; line-height: 1.65; white-space: normal; }
  .caption { display: none; }
  .brand-en { left: 31px; bottom: 28px; font-size: 9px; letter-spacing: .25em; }
  .frame { inset: 22px 22px; opacity: .55; }
  .frame i { width: 12px; height: 12px; }
  .auth-panel { min-height: calc(100svh - 212px); padding: 42px 27px 75px; align-items: flex-start; }
  .auth-content { width: min(100%, 410px); }
  .form-heading h1 { font-size: 31px; line-height: 1.4; }
  .form-heading p { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; margin-top: 9px; }
  #login-form { margin-top: 28px; }
  .field > label { font-size: 15px; margin-bottom: 9px; }
  .field + .field { margin-top: 19px; }
  .input-wrap input { height: 54px; font-family: var(--sans); font-size: 15px; padding-left: 51px; letter-spacing: .02em; border-radius: 9px; }
  .input-wrap > svg { left: 17px; width: 20px; height: 20px; }
  .remember { gap: 10px; font-family: var(--sans); font-size: 14px; margin-top: 16px; }
  .remember input { width: 20px; height: 20px; }
  .primary { min-height: 54px; font-size: 18px; margin-top: 20px; }
  .access-note { font-family: var(--sans); font-size: 12px; gap: 9px; margin-top: 22px; }
  .access-note svg { width: 16px; height: 19px; }
  .copyright { width: 100%; text-align: center; right: 0; bottom: 23px; font-size: 11px; }
  .session-content { padding-top: 22px; }
  .session-content .form-heading h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
