/* Retro V2 is fixed on the sign-in page; workspace appearance stays personal. */
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.login-shell { width: 100%; max-width: 880px; }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
:root[data-theme='arcade-v2'] .login-header .brand { padding: 0; font-size: 25px; }
.login-edition { display: flex; align-items: center; gap: 10px; font: 10px/1.6 var(--game-font); color: var(--ink-2); }
.login-edition > span { color: #9b66a5; font-size: 20px; }
.login-card { border: 2px solid #b699cb; border-radius: var(--r-m); background: var(--surface); box-shadow: 5px 5px 0 #dcc8eb; overflow: hidden; }
.login-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 24px; border-bottom: 1px solid #c7add9; background: #ebdcf6; font: 10px/1.6 var(--game-font); }
.login-window-bar > span:last-child { color: #98627e; letter-spacing: 4px; white-space: nowrap; }
.login-content { display: grid; grid-template-columns: 1fr 1fr; }
.login-welcome { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 32px; border-right: 1px solid var(--rule); background: linear-gradient(145deg, #fff9fc, #f1e5fe); }
.login-welcome h2 { margin: 14px 0; font: 25px/1.4 var(--game-font); letter-spacing: -.8px; }
.login-welcome h2 > span { color: #86538f; }
.login-welcome > p:not(.v2-eyebrow) { max-width: 300px; margin: 0; font-size: 13px; color: var(--ink-2); }
.login-companion { display: flex; flex-direction: column; align-items: center; align-self: center; margin: 26px 0 24px; }
.login-pip { display: block; width: 160px; height: 150px; margin-top: 12px; }
.login-pip-caption { margin: 8px 0 0; color: var(--ink-2); font: 8px/1.7 var(--game-font); text-align: center; }
.login-note { display: flex; align-items: center; gap: 8px; align-self: center; padding: 7px 12px; background: #fff1cf; border: 1px solid #ddc790; border-radius: 4px; color: #755535; font-size: 11px; }
.login-form-panel { align-self: center; min-width: 0; padding: 36px 32px; }
.login-form-panel h1 { margin: 12px 0; font: 25px/1.4 var(--game-font); letter-spacing: -.8px; }
.login-hint { margin: 0 0 26px; color: var(--ink-2); font-size: 13px; }
.login-card form { display: grid; gap: 18px; }
:root[data-retro] .login-card input { min-height: 46px; border-radius: 4px; font-size: 16px; }
.login-card .btn { width: 100%; min-height: 46px; margin-top: 4px; justify-content: space-between; padding: 12px 16px; }
.login-card .btn:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }
.login-error { margin: 0; padding: 10px 12px; border: 1px solid var(--red); border-radius: 4px; background: var(--red-soft); font-size: 13px; color: var(--red); overflow-wrap: anywhere; }
.login-status { margin: 0; font-size: 13px; color: var(--ink-2); }
.login-error:empty, .login-status:empty { display: none; }
.login-help { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
.login-footer { margin-top: 24px; text-align: center; color: var(--ink-2); font-size: 11px; }
@media (max-width: 640px) {
  .login-page { padding: 24px 16px; }
  .login-shell { max-width: 440px; }
  .login-content { grid-template-columns: 1fr; }
  .login-window-bar { padding: 11px 18px; font-size: 8px; }
  .login-welcome { position: relative; padding: 24px 20px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .login-welcome h2 { margin-bottom: 0; padding-right: 70px; font-size: 20px; }
  .login-welcome > p:not(.v2-eyebrow), .login-note, .login-companion .v2-speech, .login-pip-caption { display: none; }
  .login-companion { position: absolute; right: 12px; bottom: 16px; margin: 0; }
  .login-pip { width: 72px; height: 68px; margin: 0; }
  .login-form-panel { padding: 28px 20px; }
  .login-form-panel h1 { font-size: 23px; }
}
