/* Sign-in page, invite gate and invite admin (gate.css): the MRS V2 look. Colours, fonts and the
   card edge come from brand-tokens.css; the values after each var() are only fallbacks. */

/* The base the sign-in page used to take from app.css. app.css is the app's own stylesheet and
   the invite gate keeps it behind the invite, so linking it left the operator's sign-in page
   unstyled; the few rules it needs are here. :where() keeps them at zero specificity, so every
   rule below still wins. */
:where(body.login-page, body.login-page *) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.login-page {
  font-family: var(--font, "Archivo", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text, #eef2f7);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 24px;
}

.login-wrap {
  width: min(420px, 100%);
  background: var(--card-gradient, none), var(--panel, #131518);
  border: 1px solid var(--border, #2a3040);
  border-radius: 8px;
  padding: 32px 28px 24px;
  box-shadow: var(--glass-edge, none), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.login-logo {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 18px;
  background: #000;
  padding: 8px 12px;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px dashed rgba(200, 200, 200, 0.45);
  border-radius: 4px;
  background: #141414;
  color: rgba(200, 200, 200, 0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text, #ecebe4);
}

.login-sub {
  margin: 0 0 22px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim, #9aa0a8);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.login-field label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim, #9aa0a8);
}

.login-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 4px;
  border: 1px solid var(--input-border, #2a3040);
  background: var(--input-bg, #0e1013);
  color: var(--text, #e8eaed);
  font-size: 15px;
}

.login-field input:focus {
  border-color: var(--accent, #00e5ff);
  outline: 2px solid var(--accent, #00e5ff);
  outline-offset: 1px;
}

.login-btn { width: 100%; }
.login-btn:disabled { cursor: wait; }

.login-error {
  min-height: 20px;
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: var(--heat-text, #ff8052);
}

.login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim, #9aa0a8);
}

.login-warning {
  margin: 20px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border, #2a3040);
  border-left: 3px solid var(--heat, #ff5a1f);
  border-radius: 4px;
  background: rgba(255, 90, 31, 0.07);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim, #c8c6bc);
  text-align: left;
}

.login-warning strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heat-text, #ff8052);
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-warning .login-owner {
  display: inline;
  text-transform: none;
  letter-spacing: 0;
}

.login-corner {
  position: fixed;
  bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--subtext, #9c9a92);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.login-corner-left { left: 8px; }
.login-corner-right { right: 8px; }
