body.auth-locked {
  overflow: hidden;
}
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 26, 36, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-gate-overlay.is-open {
  display: flex;
}
.auth-gate-card {
  width: min(400px, 100%);
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e6e2d9;
  box-shadow: 0 24px 60px rgba(17, 29, 46, 0.24);
  color: #1f252d;
}
.auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.auth-gate-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1a2d47;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.auth-gate-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}
.auth-gate-brand small {
  display: block;
  font-size: 12px;
  color: #6b737d;
}
.auth-gate-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #535c68;
}
.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-gate-label {
  font-size: 12px;
  font-weight: 600;
  color: #2b333e;
}
.auth-gate-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #d5d0c7;
  background: #faf9f6;
  font-size: 14px;
  color: #1e242b;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-gate-input:focus {
  border-color: #2857e8;
  background: #ffffff;
}
.auth-gate-error {
  min-height: 18px;
  font-size: 12px;
  color: #c93b2b;
  line-height: 1.4;
}
.auth-gate-error:empty {
  display: none;
}
.auth-gate-submit {
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: #2857e8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.auth-gate-submit:hover {
  opacity: 0.92;
}
.auth-gate-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-gate-tip {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #7c848e;
}
.auth-logout-btn {
  margin-top: 10px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--line, #dedad0);
  background: #fff;
  color: var(--muted, #5c6570);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.auth-logout-btn:hover {
  border-color: #c93b2b;
  color: #c93b2b;
}
