/* Login and account-entry styles. Layered on landing.css so the sign-in screen
   uses the same paper, red accent, and fonts as the rest of the site. Class names
   and ids are unchanged so account.js keeps working. */

:root {
  --field-bg: #fffdf8;
  --error: #8a241f;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
}

[hidden] {
  display: none !important;
}

body {
  background:
    var(--paper-fibre),
    radial-gradient(circle at 82% 6%, rgba(255, 250, 241, 0.42), transparent 17rem),
    linear-gradient(180deg, rgba(255, 250, 241, 0.22), transparent 480px),
    var(--room);
  background-size: var(--paper-fibre-size), auto, auto, auto;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--ui);
  margin: 0;
  min-height: 100vh;
}

.login-shell {
  align-items: center;
  display: grid;
  gap: 26px;
  justify-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.brand {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.brand strong {
  color: var(--accent);
}

.login-panel {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  display: grid;
  gap: 13px;
  max-width: 420px;
  padding: clamp(28px, 5vw, 42px);
  width: min(100%, 420px);
}

.login-panel > div {
  margin-bottom: 4px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(38px, 8vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0 0 10px;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.5;
  margin: 0 0 12px;
}

label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input {
  background: var(--field-bg);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

input:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
}

button {
  background: var(--accent);
  border: 1px solid var(--accent-deep);
  color: #fff5e7;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  min-height: 48px;
  padding: 0 18px;
  text-transform: uppercase;
}

button:hover,
button:focus-visible {
  background: var(--accent-deep);
}

.secondary-button {
  background: rgba(255, 250, 241, 0.6);
  border-color: var(--line-dark);
  color: var(--accent);
  min-height: 42px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--paper-aged);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.password-tools,
.checkbox-line {
  align-items: center;
  display: flex;
  gap: 10px;
}

.password-tools {
  flex-wrap: wrap;
  justify-content: space-between;
}

.checkbox-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-line input {
  min-height: 0;
  width: auto;
}

.strength-meter {
  background: var(--paper-aged);
  border: 1px solid var(--line);
  height: 8px;
  overflow: hidden;
}

.strength-meter span {
  background: var(--muted);
  display: block;
  height: 100%;
  transition: width 160ms ease, background 160ms ease;
  width: 0;
}

.strength-meter span.is-weak {
  background: var(--accent);
  width: 34%;
}

.strength-meter span.is-good {
  background: #b7791f;
  width: 68%;
}

.strength-meter span.is-strong {
  background: #3f6b50;
  width: 100%;
}

.password-hint {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.form-status {
  color: var(--muted);
  font-family: var(--serif);
  margin: 0;
  min-height: 22px;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 700;
}

@media (max-width: 520px) {
  .login-shell {
    align-content: start;
    padding-top: 32px;
  }

  .login-panel {
    padding: 24px;
  }
}
