* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
}

/* ── Card ── */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  width: 100%;
  margin: 0 auto;
}

/* ── Typography ── */
h1 {
  font-size: 1.3rem;
  color: #0069ff;
  margin-bottom: 0.25rem;
}

p.subtitle {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

/* ── Form controls ── */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0069ff;
}

.token-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.token-field-wrap input {
  flex: 1;
  padding-right: 3rem;
}

.token-reveal-btn {
  position: absolute;
  right: 0.5rem;
  margin: 0;
  width: auto;
  padding: 0.25rem 0.5rem;
  background: none;
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}

.token-reveal-btn:hover {
  color: #0069ff;
  border-color: #0069ff;
  background: none;
}

button {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.7rem;
  background: #0069ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover { background: #0052cc; }

/* ── Feedback ── */
.error {
  padding: 0.8rem 1rem;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  color: #be123c;
  font-size: 0.9rem;
}

/* ── Callback-specific ── */
.domain-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.zone-block {
  background: #0d1117;
  color: #79c0ff;
  border-left: 3px solid #0069ff;
  border-radius: 0 6px 6px 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre;
  margin-top: 0.25rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.section-gap { margin-top: 1.5rem; }

.back {
  display: inline-block;
  margin-top: 1.5rem;
  color: #0069ff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.back:hover { text-decoration: underline; }
