.icp-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 15, 23, 0.72);
  backdrop-filter: blur(8px);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.icp-auth-panel {
  position: relative;
  inset: auto;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #152232;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.icp-auth-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.icp-auth-panel h1 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.icp-auth-panel p {
  margin: 0 0 18px;
  color: #5d6978;
  font-size: 14px;
  line-height: 1.7;
}

.icp-auth-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  background: #1769aa;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.icp-auth-button:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.3);
  outline-offset: 2px;
}

.icp-auth-button:hover {
  background: #125989;
}

.icp-auth-button-secondary {
  background: #475569;
}

.icp-auth-button-secondary:hover {
  background: #334155;
}

@media (max-width: 620px) {
  .icp-auth-gate {
    align-items: center;
    padding: calc(16px + env(safe-area-inset-top)) 14px
      calc(16px + env(safe-area-inset-bottom));
  }

  .icp-auth-panel {
    width: 100%;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px 18px;
  }

  .icp-auth-panel h1 {
    font-size: 19px;
  }

  .icp-auth-panel p {
    font-size: 14px;
  }
}
