@import url("/site.css");

body.auth-page { min-height: 100dvh; background: radial-gradient(circle at 76% -20%, rgba(183,45,69,.12), transparent 42%), var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); min-height: 100dvh; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: clamp(32px, 6vw, 86px); color: #f7f2ef; background: #0d0d0f; }
.auth-brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.auth-brand img { width: 48px; height: 48px; object-fit: contain; }
.auth-brand span { display: grid; line-height: 1.2; }
.auth-brand small { color: #bcb4b8; font-size: 8px; letter-spacing: .2em; }
.auth-story-copy { max-width: 670px; margin-block: 80px; }
.auth-story-copy p { color: #e54158; font-size: 11px; font-weight: 760; letter-spacing: .16em; }
.auth-story-copy h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(42px, 5vw, 72px); }
.auth-story-copy span { display: block; max-width: 590px; color: #c6bec2; font-size: 16px; line-height: 1.85; }
.auth-promise { display: flex; flex-wrap: wrap; gap: 14px 24px; color: #a9a1a5; font-size: 12px; }
.auth-promise span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #e54158; vertical-align: 1px; }
.auth-panel { display: grid; place-items: center; padding: 32px; background: var(--surface-soft); }
.auth-card { width: min(100%, 410px); }
.auth-card > p { margin-bottom: 8px; color: var(--brand); font-size: 11px; font-weight: 760; letter-spacing: .14em; }
.auth-card h2 { margin: 0 0 10px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 32px; }
.auth-card > span { display: block; margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { font-size: 13px; font-weight: 700; }
.auth-field input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; color: var(--ink); background: var(--surface); font: inherit; font-size: 16px; outline: none; }
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(183,45,69,.14); }
.auth-field input[aria-invalid="true"] { border-color: var(--brand-deep); }
.auth-field small { min-height: 17px; color: var(--brand-deep); font-size: 12px; }
.auth-password { position: relative; }
.auth-password input { padding-right: 72px; }
.auth-password button { position: absolute; inset: 3px 3px 3px auto; min-width: 62px; border: 0; border-radius: 10px; color: var(--brand); background: transparent; font: inherit; cursor: pointer; }
.auth-guidance { margin: 0; padding: 13px 14px; border-left: 3px solid var(--brand); color: var(--ink-soft); background: #ece9e5; font-size: 13px; line-height: 1.6; }
.auth-message { min-height: 22px; color: var(--brand-deep); font-size: 13px; line-height: 1.55; }
.auth-submit { min-height: 52px; border: 0; border-radius: 14px; color: #fff; background: var(--brand); font: inherit; font-weight: 740; cursor: pointer; box-shadow: 0 12px 28px rgba(183,45,69,.2); }
.auth-submit:hover { background: var(--brand-deep); }
.auth-submit:disabled { cursor: wait; opacity: .58; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--brand); font-weight: 700; }
.auth-back { position: absolute; top: 24px; right: 28px; display: inline-flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 11px; color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.auth-back:hover { background: var(--surface); }
.auth-page :focus-visible { outline: 3px solid rgba(183,45,69,.3); outline-offset: 3px; }

@media (max-width: 860px) {
  .auth-shell { display: block; }
  .auth-story { min-height: auto; padding: 24px 20px 34px; }
  .auth-story-copy { margin: 48px 0 20px; }
  .auth-story-copy h1 { font-size: 36px; }
  .auth-story-copy span, .auth-promise { display: none; }
  .auth-panel { place-items: start center; min-height: 620px; padding: 34px 20px max(34px, env(safe-area-inset-bottom)); }
  .auth-back { position: static; justify-self: start; margin-bottom: 24px; }
}

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