/* The entrance gets a little of the game's world; the editor stays a workbench. */
.auth-page {
  --ink: #f1f0eb;
  --ink-soft: #b3b6bc;
  --ink-faint: #a2a6ae;
  --panel: #1c2027;
  --rule: #3b4049;
  --flag: #e4bd77;
  --gold: #e4bd77;
  color-scheme: dark;
  min-height: 100vh;
  min-height: 100svh;
  padding: 36px clamp(20px, 5vw, 80px) 24px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 12% 30%, #272a25 0, transparent 55%), #111419;
  color: var(--ink);
}
.auth-header, .auth-footer, .auth-card { width: 100%; max-width: 1120px; margin-inline: auto; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.auth-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 16px/1.2 var(--display); letter-spacing: .06em; }
.auth-brand img { border: 1px solid #3f4140; border-radius: 10px; }
.auth-brand small { display: block; margin-top: 6px; font: 400 9px/1.2 var(--mono); letter-spacing: .17em; color: var(--ink-soft); }
.auth-home { color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.auth-home span { margin-left: 8px; color: var(--gold); }
.auth-home:hover { color: var(--ink); }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 630px; border: 1px solid #363a3d; border-radius: 20px; overflow: hidden; box-shadow: 0 28px 80px #0005; margin-block: auto; }
.auth-story { position: relative; min-height: 630px; padding: 46px 44px; background: linear-gradient(180deg, #111b17ed 0, #111b17c7 32%, #111b1720 64%, #0c1413b8 100%), url('/static/login-ramoona.webp?v=2') center 56% / cover; display: flex; flex-direction: column; justify-content: space-between; }
.auth-eyebrow { font: 400 9px/1.5 var(--mono); letter-spacing: .11em; color: #e2dccb; display: flex; align-items: center; gap: 10px; }
.auth-eyebrow i { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 12px #e4bd7780; }
.auth-story h2 { margin: 28px 0 18px; font: 600 clamp(40px, 4.3vw, 60px)/1.04 var(--display); letter-spacing: -.045em; }
.auth-story h2 em { color: var(--gold); font-style: normal; }
.auth-story-copy > p { margin: 0; font-size: 14px; line-height: 1.7; color: #d5d8ce; }
.auth-art-caption { display: flex; flex-direction: column; gap: 7px; margin-top: 160px; }
.auth-art-caption span { font: 400 8px/1.5 var(--mono); letter-spacing: .13em; color: #e2dccb; }
.auth-art-caption b { font: 500 17px/1.3 var(--display); }
.auth-panel { background: #191d24; padding: 60px clamp(28px, 4.4vw, 64px) 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel-content { margin-block: auto; padding-block: 10px 26px; }
.auth-kicker { font: 400 9px/1.5 var(--mono); letter-spacing: .12em; color: var(--gold); }
.auth-panel h1 { font: 600 38px/1.15 var(--display); letter-spacing: -.04em; margin: 12px 0; }
.auth-intro { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin: 0 0 32px; }
.auth-panel .field { margin-bottom: 22px; }
.auth-panel .field label { color: #d3d5da; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.auth-panel input:not([type=hidden]) { padding: 13px 14px; min-height: 48px; font-size: 15px; border-radius: 8px; transition: border-color .15s; }
.auth-panel input::placeholder { color: #969ba5; opacity: 1; }
.auth-panel input:hover { border-color: #686d77; }
.auth-panel :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.auth-label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.auth-label-row a { font-size: 12px; color: var(--gold); text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }
.auth-password { position: relative; }
.auth-password input { padding-right: 50px !important; }
.auth-toggle { position: absolute; right: 3px; top: 3px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.auth-toggle:hover { color: var(--gold); background: #ffffff08; }
.auth-panel .auth-submit { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; margin-top: 8px; padding: 13px 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #201a10; font: 600 14px/1.4 var(--sans); text-decoration: none; transition: background .15s, transform .15s; }
.auth-panel .auth-submit:hover { opacity: 1; background: #efcd92; border-color: #efcd92; transform: translateY(-1px); }
.auth-panel .auth-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.auth-submit > span[aria-hidden] { font-size: 20px; line-height: 1; }
.auth-security { display: flex; align-items: flex-start; justify-content: center; gap: 7px; color: var(--ink-faint); font-size: 11px; line-height: 1.6; text-align: center; margin: 20px 0 0; }
.auth-security svg { flex-shrink: 0; margin-top: 1px; }
.auth-access-note { border-top: 1px solid #32363e; padding-top: 22px; margin: 12px 0 0; color: var(--ink-faint); font-size: 11px; line-height: 1.8; text-align: center; }
.auth-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; color: #9fa49f; font-size: 11px; }
.auth-footer > span:first-child { font: 400 9px/1.5 var(--mono); letter-spacing: .12em; }
.auth-notice { padding: 14px 16px; margin: 0 0 22px; border: 1px solid #50664c; border-radius: 8px; background: #27382c; color: #d9e8d1; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-error { border-color: #79534b; background: #382825; color: #ffd8cc; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; text-decoration: none; margin-bottom: 30px; }
.auth-back:hover { color: var(--gold); }
.auth-back + .auth-kicker { display: block; }
.auth-hint { color: var(--ink-soft); font-size: 11px; margin: 8px 0 0; }
@media (max-width: 800px) {
  .auth-page { padding: 24px 20px; }
  .auth-header { margin-bottom: 28px; }
  .auth-brand { font-size: 14px; gap: 9px; }
  .auth-home { font-size: 12px; }
  .auth-card { grid-template-columns: 1fr; max-width: 480px; min-height: 0; }
  .auth-story { min-height: 190px; padding: 28px; background-position: center 44%; }
  .auth-story h2 { font-size: 33px; margin: 16px 0 0; }
  .auth-story h2 br { display: none; }
  .auth-story-copy > p, .auth-art-caption { display: none; }
  .auth-panel { padding: 32px 28px 26px; }
  .auth-panel-content { padding-block: 0 12px; }
  .auth-panel h1 { font-size: 32px; }
  .auth-intro { margin-bottom: 24px; }
  .auth-footer { max-width: 480px; font-size: 10px; }
}
@media (max-width: 400px) {
  .auth-page { padding-inline: 14px; }
  .auth-home { max-width: 95px; text-align: right; }
  .auth-panel { padding-inline: 22px; }
  .auth-story { padding-inline: 22px; }
  .auth-story h2 { font-size: 30px; }
  .auth-eyebrow { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-panel input, .auth-panel .auth-submit { transition: none; }
  .auth-panel .auth-submit:hover { transform: none; }
}
