html.auth-loading body {
  visibility: hidden;
}

html.auth-locked body,
html.auth-unlocked body {
  visibility: visible;
}

html.auth-locked body > :not(.auth-gate) {
  display: none !important;
}

html.auth-unlocked .auth-gate {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef2f7 100%);
}

.auth-card {
  width: min(100%, 420px);
  border: 1px solid #e8eaed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  padding: 28px;
}

.auth-card button,
.auth-card input {
  font: inherit;
}

.auth-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8fa3;
}

.auth-title {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.1;
  color: #1a1a2e;
}

.auth-copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #647084;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-label {
  font-size: 12px;
  font-weight: 700;
  color: #445066;
}

.auth-input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
  border-color: #b8cdfb;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.auth-button {
  border: 1px solid #cad9fb;
  border-radius: 12px;
  background: #eef4ff;
  color: #214b88;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.auth-button:hover {
  background: #e5efff;
  border-color: #b8cdfb;
  color: #173e74;
}

.auth-error {
  min-height: 18px;
  font-size: 12px;
  color: #c2410c;
}
