/* Shared styling for the three pre-login pages (login, first-run setup, recovery).
   Previously each page carried its own inline block and none of them styled the inputs, so the
   fields rendered as default white boxes against the dark theme. */

.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh; /* same mobile-viewport reason as #app — see style.css */
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 20px 56px var(--shadow);
}

.auth-card h1 {
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.auth-card p.sub {
  opacity: 0.7;
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-card code {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.82em;
  word-break: break-all;
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 14px 0 5px;
}

.auth-card input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus, which on a phone looks
     like the layout breaking the moment you tap a field. */
  font-size: 16px;
}

.auth-card input:focus {
  outline: 2px solid var(--accent-3);
  outline-offset: 1px;
}

.auth-card button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #241a3d;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.auth-card button:disabled {
  opacity: 0.55;
  cursor: default;
}

.auth-error {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #ff9d9d;
  min-height: 1.2em;
  line-height: 1.4;
}

.auth-ok {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #8ff0c0;
  line-height: 1.4;
}
