[hidden] {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.auth-card h1 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.auth-copy,
.auth-loading {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-raised);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
}

.auth-field input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-dim);
}

.auth-submit {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #06110e;
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 800;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-logout {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
}

.auth-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

.auth-logout:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-alert {
  min-height: 18px;
  margin-top: 14px;
  color: var(--red);
  font-size: 12px;
}
