
:root {
  color-scheme: dark;
  --bg: #09090c;
  --panel: #111116;
  --input: #0b0b10;
  --border: #272730;
  --text: #f5f5f7;
  --muted: #93939f;
  --accent: #a78bfa;
  --accent-hover: #b9a3ff;
  --green: #4ade80;
  --red: #fb7185;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #241641 0, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #ffffff0b;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.logo,
.button-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #c4b5fd, #7c3aed);
  font-weight: 850;
}

.tag,
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

.container {
  width: min(100% - 32px, 680px);
  margin: auto;
}

.hero {
  padding: 70px 0 36px;
  text-align: center;
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px #4ade8055;
}

h1 {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin: 24px 0 18px;
}

h1 span {
  color: var(--accent);
}

.hero p,
.panel-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero p {
  max-width: 430px;
  margin: auto;
}

.panel {
  background: linear-gradient(145deg, #14141b, #101015);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 27px;
  margin-bottom: 18px;
  box-shadow: 0 20px 70px #00000022;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0 0 7px;
}

.panel-heading p {
  margin: 0;
  font-size: 12px;
}

.status {
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: #c4b5fd;
  background: #a78bfa0d;
}

.status.success {
  color: var(--green);
  border-color: #4ade8033;
  background: #4ade800c;
}

form > label {
  display: block;
  margin: 22px 0 9px;
  color: #d7d7df;
  font-size: 12px;
  font-weight: 650;
}

input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--accent);
}

.scopes {
  display: grid;
  gap: 9px;
}

.scope {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b0b10;
  cursor: pointer;
}

.scope input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

.scope span {
  display: grid;
  gap: 4px;
}

.scope b {
  font-size: 12px;
}

.scope small {
  color: var(--muted);
  font-size: 11px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  margin-top: 23px;
  background: var(--accent);
  color: #100a1b;
  font: inherit;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: background 0.2s, transform 0.2s;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.button-logo {
  width: 23px;
  height: 23px;
  font-size: 12px;
  border-radius: 7px;
  background: #100a1b;
  color: #fff;
}

.arrow {
  margin-left: auto;
}

.security-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.security-note span {
  margin-right: 4px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  margin: 0 0 26px;
  background: #0b0b10;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #292039;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile strong {
  font-size: 14px;
}

.profile p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

h3 {
  font-size: 13px;
  margin: 23px 0 10px;
}

pre {
  padding: 15px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #08080b;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #c4b5fd;
  font-size: 11px;
  line-height: 1.7;
}

.secondary {
  background: #1c1c25;
  border: 1px solid var(--border);
  color: var(--text);
}

.secondary:hover {
  background: #292936;
}

.error-panel {
  border-color: #fb718544;
}

.error-panel h2 {
  color: var(--red);
}

.error-panel p {
  color: #d5b9bd;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 0 40px;
  color: #747480;
  font-size: 10px;
}

@media (max-width: 520px) {
  .topbar {
    padding: 18px 16px;
  }

  .tag {
    display: none;
  }

  .hero {
    padding: 48px 0 28px;
  }

  h1 {
    letter-spacing: -1.7px;
  }

  .panel {
    padding: 20px;
  }

  .panel-heading {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    align-items: center;
  }
}


.app-info {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  margin-bottom: 25px;
  background: #0b0b10;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.app-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #c4b5fd, #7c3aed);
  color: white;
  font-weight: 850;
  font-size: 19px;
}

.app-info strong {
  font-size: 13px;
}

.app-info p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.panel > label {
  display: block;
  margin: 20px 0 10px;
  color: #d7d7df;
  font-size: 12px;
  font-weight: 650;
}

#signOutButton {
  margin-top: 12px;
}

#signOutButton[hidden] {
  display: none !important;
}
