.auth-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
  animation: authGateFadeIn 0.18s ease;
}

.auth-gate-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 26px 26px;
  border-radius: 24px;
  background: #f8fbff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  color: #17202d;
  text-align: center;
  animation: authGateCardIn 0.22s ease;
}

.auth-gate-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #edf4fa;
  color: #657386;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.auth-gate-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(0, 186, 255, 0.12);
  color: #00baff;
  font-size: 30px;
  font-weight: 900;
}

.auth-gate-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-gate-card p {
  margin: 0 auto 22px;
  max-width: 320px;
  color: #667386;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.auth-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-gate-primary,
.auth-gate-secondary {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-gate-primary {
  background: #00baff;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 186, 255, 0.24);
}

.auth-gate-secondary {
  background: #edf4fa;
  color: #17202d;
}

.auth-gate-primary:hover,
.auth-gate-secondary:hover {
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .auth-gate-card {
    padding: 28px 20px 22px;
  }

  .auth-gate-card h2 {
    font-size: 25px;
  }
}

@keyframes authGateFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authGateCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
