/* Boltnot owner login — calm B&W, brand top-left, form bottom-left */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body.login-body {
  min-height: 100vh;
  background: #f7f7f5;
  color: #111;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 32px 40px;
}

.login-brand {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: #111;
}

.login-meta {
  margin: 6px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
}

.login-spacer {
  flex: 1 1 auto;
  min-height: 48px;
}

.login-plate {
  width: min(100%, 22rem);
  align-self: flex-start;
}

.login-plate h2 {
  margin: 0 0 4px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #111;
}

.login-plate .sub {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #555;
}

.login-plate label {
  display: block;
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
}

.login-plate .field {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  font-family: inherit;
}

.login-plate .field:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
  border-color: #111;
}

.login-plate .btn {
  display: inline-block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

.login-plate .btn:hover {
  background: #222;
}

.login-plate .btn:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.login-error {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #8a1f1f;
  min-height: 1.2em;
}

.login-error[hidden] {
  display: none;
}

.login-hint {
  margin: 16px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

@media (max-width: 480px) {
  .login-shell {
    padding: 20px 18px 32px;
  }
}

/* T-291 sitewide dark for login */
html[data-theme="dark"] body.login-body {
  background: #0f0f10;
  color: #f2f2f3;
}
html[data-theme="dark"] .login-brand { color: #f2f2f3; }
html[data-theme="dark"] .login-meta { color: #9a9a9e; }
html[data-theme="dark"] .login-plate h2 { color: #f2f2f3; }
html[data-theme="dark"] .login-plate .sub { color: #9a9a9e; }
html[data-theme="dark"] .login-plate label { color: #b0b0b4; }
html[data-theme="dark"] .login-plate .field {
  background: #1a1a1e;
  color: #f2f2f3;
  border-color: #3a3a40;
}
html[data-theme="dark"] .login-hint { color: #6e6e74; }
html[data-theme="dark"] .login-error { color: #e07070; }
