.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f7fa;
}

.auth-gate.visible {
  display: flex;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid #e1e6eb;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 60px rgba(25, 35, 45, 0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.auth-brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0,229,255,.35);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a1a1a;
}

.auth-brand strong {
  display: block;
  color: #1a1a1a;
  font-size: 16px;
}

.auth-brand span {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: 12px;
}

.auth-card h1 {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 28px;
}

.auth-card > p {
  margin: 0 0 26px;
  color: #666;
  line-height: 1.55;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #333;
  font-size: 13px;
  font-weight: 650;
}

.auth-field input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9e0e6;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font: inherit;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(0,229,255,.65);
  box-shadow: 0 0 0 3px rgba(0,229,255,.08);
}

.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 1px solid rgba(0,229,255,.35);
  border-radius: 10px;
  background: #252b32;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:hover {
  background: #30373f;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.auth-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0,229,255,.65);
  text-underline-offset: 3px;
}

.auth-error {
  display: none;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #eed5d5;
  border-radius: 9px;
  background: #fff7f7;
  color: #9b3030;
  font-size: 13px;
}

.auth-error.visible {
  display: block;
}

.auth-loading {
  color: #666;
  font-size: 14px;
}
