/* Shared paper palette; a quiet entry with independent header, form and footer. */
:root {
  --ink: var(--ui-ink); --text: var(--ui-ink); --muted: var(--ui-muted);
  --accent: var(--ui-accent); --accent-hover: var(--ui-accent-hover); --accent-deep: var(--ui-accent-hover);
  --line: var(--ui-line); --surface: var(--ui-surface);
  font-family: var(--ui-font); background: var(--ui-paper);
}
body { display: block; margin: 0; padding: 0 48px; background: none; }
.login-card { max-width: 1200px; min-height: 100vh; min-height: 100svh; margin: auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); grid-template-rows: auto 1fr auto; column-gap: 10%; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin: 0; padding: 26px 0; border-bottom: 1px solid var(--line); text-align: left; }
.brand h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.6px; line-height: 1.2; }
.brand-caption { border-left: 1px solid var(--line); padding-left: 20px; font-size: 13px; color: var(--muted); }
.login-story { position: relative; align-self: center; min-height: 440px; padding: 44px 0; overflow: hidden; isolation: isolate; }
.login-story h2 { margin: 0 0 24px; font-size: clamp(38px, 3.8vw, 52px); line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.login-story h2 span { color: var(--accent); }
.story-description { margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); }
.story-mobile-break { display: none; }
.story-art { position: absolute; z-index: -1; width: 280px; height: 220px; right: 0; bottom: -26px; pointer-events: none; opacity: .65; }
.art-orbit { position: absolute; inset: 24px 78px; border: 1px solid #9caa9670; border-radius: 50%; transform: rotate(-34deg); }
.orbit-two { transform: rotate(24deg); border-color: #b7876e80; }
.orbit-three { transform: rotate(82deg); border-color: #9caa9650; }
.art-core { position: absolute; top: 45%; left: 48%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.art-coordinate { display: none; }
.login-content { align-self: center; min-width: 0; margin: 48px 0; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 6px 24px #252b2803; }
.method-header { min-height: 64px; padding-top: 4px; }
.method-header h2 { font-size: 22px; font-weight: 500; line-height: 32px; letter-spacing: 0; }
.switch-hint { top: 10px; left: auto; right: 54px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 11px; line-height: 18px; }
.switch-hint::after { display: none; }
.mode-switch { top: -8px; right: -8px; width: 56px; height: 56px; border-radius: 8px; color: var(--accent); }
.corner-art { width: 56px; height: 56px; background: var(--ui-tint); }
.corner-art::after { display: none; }
.corner-art > span { position: absolute; top: 4px; right: 4px; display: block; width: 35px; height: 35px; }
.corner-art svg { width: 35px; height: 35px; }
.mode-switch:hover .corner-art { background: #e6d7c8; }
.field + .field { margin-top: 18px; }
.field label { margin-bottom: 8px; font-size: 13px; font-weight: 400; }
.field input { padding: 0 12px; border-radius: 8px; background: #fff; }
.field input::placeholder { color: #85877f; font-size: 14px; }
.password-field input { padding-right: 46px; }
.password-toggle { color: var(--muted); border-radius: 7px; }
.password-toggle:hover { background: var(--ui-paper); }
.login-options { margin: 6px 0 14px; font-size: 12px; }
.remember, .login-options a { min-height: 44px; }
.submit { display: flex; align-items: center; justify-content: center; width: min(100%, 220px); min-height: 44px; margin: 0 auto; padding: 10px 20px; border-radius: 8px; font-size: 15px; font-weight: 500; line-height: 24px; text-align: center; }
.password-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; font-size: 11px; line-height: 18px; }
.login-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: left; }
.footer-brand { font-size: 12px; margin-right: auto; }
.login-footer p a { min-height: 44px; }
.guide { gap: 8px; min-height: 44px; padding: 8px 0; margin: 0; }
.password-return { min-height: 44px; }
.qr-image-slot { border-radius: 8px; }
button:focus-visible, a:focus-visible, .remember input:focus-visible { outline-offset: 4px; }
.password-only { min-height: 58px; }
@media (max-width: 1000px) {
  body { padding: 0 32px; }
  .login-card { column-gap: 6%; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
  .login-content { padding: 24px; }
  .login-story h2 { font-size: 36px; }
  .story-art { right: -70px; }
}
@media (max-width: 700px) {
  body { padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .login-card { max-width: 420px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .brand { gap: 16px; padding: max(22px, env(safe-area-inset-top)) 0 20px; }
  .brand h1 { font-size: 24px; }
  .brand-caption { padding-left: 16px; font-size: 12px; }
  .login-story { display: none; }
  .login-content { width: 100%; max-width: 380px; justify-self: center; margin: 28px 0; padding: 24px; }
  .method-header h2 { font-size: 21px; }
  .field + .field { margin-top: 16px; }
  .login-footer { justify-content: space-between; gap: 12px; padding: 10px 0 max(12px, env(safe-area-inset-bottom)); }
  .footer-brand { display: none; }
  .guide { margin-left: auto; white-space: nowrap; }
}
@media (max-width: 360px) {
  body { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .brand-caption { font-size: 11px; }
  .login-content { padding: 20px; }
  .password-hint { font-size: 10px; gap: 4px; }
  .login-footer { gap: 8px; }
  .login-footer p, .guide { font-size: 12px; }
}
@media (max-width: 700px) and (max-height: 660px) {
  .brand { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px; }
  .login-content { margin: 16px 0; padding-top: 20px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
