@import url("./nxtblue-tokens.css");

:root {
  --bg: var(--engage-bg);
  --panel: var(--engage-card);
  --text: var(--engage-fg);
  --muted: var(--engage-muted-fg);
  --accent: var(--engage-primary);
  --border: var(--engage-border);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    hsl(173 72% 48% / 0.15),
    transparent
  );
}

main {
  position: relative;
  width: min(440px, 100%);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: calc(var(--engage-radius) + 4px);
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.logo-placeholder {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--engage-radius) - 2px);
  background: linear-gradient(
    135deg,
    var(--engage-primary),
    var(--engage-accent)
  );
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-byline {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.brand-byline a {
  color: var(--nxtblue);
  text-decoration: none;
  font-weight: 600;
}

.brand-byline a:hover {
  text-decoration: underline;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
}

.providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

button {
  width: 100%;
  border: 0;
  border-radius: var(--engage-radius);
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--engage-primary-fg);
  transition: background 0.15s ease;
}

button:hover:not(:disabled) {
  background: hsl(173 72% 48% / 0.9);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.footer-link {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer-link a {
  color: var(--muted);
  text-decoration: none;
}

.footer-link a:hover {
  color: var(--engage-primary);
}

.status {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--engage-radius);
  font-size: 0.875rem;
  line-height: 1.45;
  display: none;
}

.status.show {
  display: block;
}

.status.info {
  background: var(--engage-muted);
  color: var(--muted);
  border: 1px solid var(--border);
}

.status.ok {
  background: hsl(173 72% 48% / 0.12);
  color: hsl(173 72% 72%);
  border: 1px solid hsl(173 72% 48% / 0.25);
}

.status.err {
  background: hsl(0 62.8% 30.6% / 0.2);
  color: hsl(0 80% 85%);
  border: 1px solid hsl(0 62.8% 30.6% / 0.35);
}
