:root {
  color-scheme: light;
  --text: #f7f9f8;
  --muted: #e0e7e3;
  --line: #ffffff40;
  --accent: #0f766e;
  --control-text: #20282c;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden], .icon-definitions { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: #181c1f;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
/* The building's natural shadow holds the controls; the daylight scene stays visible. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -2; background: #181c1f url("/static/assets/scum-login.webp") center / cover no-repeat; }
body::after { z-index: -1; background: #0c14172e; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #87e0c9; outline-offset: 4px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.login-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
  padding: 20px 64px;
  border-bottom: 1px solid var(--line);
  background: #101718ad;
  color: var(--muted);
}
.wordmark { font-size: 28px; line-height: 1.2; font-weight: 750; color: #fff; }
.wordmark span { color: #87d8be; }
.login-header > span:last-child { padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; }
.login-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 492px);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 48px 64px 56px;
}
.login-content { grid-column: 2; width: 100%; min-width: 0; }
.login-eyebrow { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
h1 { margin: 0; font-size: 76px; line-height: 1; font-weight: 800; }
h1 span { display: block; margin-top: 16px; font-size: 32px; line-height: 1.4; font-weight: 650; }
h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.4; }
.login-subtitle { margin: 28px 0 24px; font-size: 17px; font-weight: 600; }
.login-eyebrow, h1, h2, .login-subtitle, .login-hint, .login-status, label, .login-environment { text-shadow: 0 1px 4px #0009; }
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 120ms, border-color 120ms;
  overflow-wrap: anywhere;
}
.primary { background: var(--accent); color: #fff; border-color: #62b6a9; }
.primary:hover:not(:disabled):not([aria-disabled="true"]) { background: #095c56; border-color: #87d8be; }
.secondary { background: #f7f9f8; color: #35484f; border-color: #b5c1c6; }
.secondary:hover:not(:disabled) { background: #eaf0ef; border-color: #809d98; }
.login-button:active:not(:disabled):not([aria-disabled="true"]) { border-color: #87e0c9; }
.login-button:disabled, .login-button[aria-disabled="true"] { background: #dce3e1; border-color: #b5c1c6; color: #59686c; cursor: not-allowed; }
.end-icon { margin-left: auto; }
.login-button > span { flex: 1; min-width: 0; text-align: left; }
.login-hint { margin: 10px 0 20px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.demo-options { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.option-label { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.demo-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login-error { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid #b42335; color: #9d2232; background: #fff0f2; font-size: 14px; overflow-wrap: anywhere; }
.login-status { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--muted); }
.spinner { width: 18px; height: 18px; flex-shrink: 0; border: 2px solid #c0d6d1; border-top-color: #87e0c9; border-radius: 50%; animation: spin 900ms linear infinite; }
.login-environment { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.login-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 18px 64px; border-top: 1px solid var(--line); background: #10171870; color: var(--muted); font-size: 12px; }
.back-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; margin-bottom: 16px; border: 0; background: none; color: #a3ecd7; font-size: 14px; }
.back-button:hover:not(:disabled) { color: #fff; }
.back-button:disabled { color: #b6c7c1; }
.back-button .icon { transform: rotate(180deg); }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
input { width: 100%; min-height: 48px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #b5c1c6; border-radius: 5px; background: #fff; color: var(--control-text); }
input:focus { border-color: var(--accent); }
input:disabled { background: #e1e8e5; color: #53635b; }
.verification-code { padding: 18px; border: 1px solid #b4d5ce; background: #e7f4f1; color: #17564c; font: 600 22px/1.4 ui-monospace, Consolas, monospace; text-align: center; overflow-wrap: anywhere; }
.binding-command { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 12px; border: 1px solid #b4d5ce; border-radius: 5px; background: #e7f4f1; }
.binding-command .verification-code { display: block; min-width: 0; padding: 0; border: 0; font-size: 20px; line-height: 1.5; text-align: left; user-select: all; }
.binding-copy { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b4d5ce; border-radius: 5px; background: #fff; color: #17564c; }
.binding-copy:hover:not(:disabled) { background: #dcece7; border-color: #7ca99b; }
.binding-copy:disabled { opacity: .5; cursor: not-allowed; }
.binding-copy-status { min-height: 22px; margin: 6px 0; }
.steam-id-hint { margin-top: -6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1001px) and (max-width: 1500px) {
  .login-content { width: min(100%, 440px); justify-self: end; }
}
@media (max-width: 1000px) {
  .login-header, .login-footer { padding-inline: 40px; }
  .login-main { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; padding-inline: 40px; }
  h1 { font-size: 68px; }
}
@media (max-width: 700px) {
  body::before { background-position: 76% center; }
  body::after { background: #0c141761; }
  .login-header, .login-footer { padding-inline: 24px; }
  .login-header { min-height: 72px; }
  .login-main { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; padding: 40px 24px 48px; }
  .login-content { grid-column: 1; width: min(100%, 492px); margin-inline: auto; }
  h1 { font-size: 60px; }
  h1 span { margin-top: 12px; font-size: 28px; }
  .login-subtitle { margin-top: 24px; }
}
@media (max-width: 360px) {
  .login-header, .login-footer { padding-inline: 20px; }
  .login-main { padding-inline: 20px; }
  .demo-buttons { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
