:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top right, #dcecff, transparent 42%), #f4f7fb;
}

.connection-card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid #dce4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgb(36 61 96 / 12%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #2f6fed;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.intro {
  margin: 12px 0 32px;
  color: #5e6b7e;
  line-height: 1.6;
}

.endpoint-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.backend-url {
  margin: 0 0 18px;
  color: #42526a;
  overflow-wrap: anywhere;
}

.backend-url code {
  padding: 4px 7px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: #f6f8fb;
  font: 0.9rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.url-row {
  display: flex;
  gap: 10px;
}

button {
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: #2f6fed;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

button:hover {
  background: #2059c7;
}

.validation-message {
  display: block;
  min-height: 22px;
  margin-top: 7px;
  color: #b42318;
  font-size: 0.85rem;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid;
  border-radius: 10px;
}

.result.success {
  border-color: #a6d7bb;
  background: #f0fbf4;
  color: #145c32;
}

.result.failure {
  border-color: #f0b7b2;
  background: #fff6f5;
  color: #8b2118;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-code {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.75;
}

pre {
  max-height: 220px;
  margin: 14px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .url-row {
    flex-direction: column;
  }

  button {
    min-height: 48px;
  }
}