:root {
  --auth-bg: #f4f7ff;
  --auth-card: #ffffff;
  --auth-primary: #ff6600;
  --auth-primary-dark: #cc5200;
  --auth-text: #1e293b;
  --auth-muted: #64748b;
  --auth-border: #dbe3f0;
  --auth-danger: #b42318;
  --auth-success: #087443;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 10% 10%, #e6edff, transparent 40%), var(--auth-bg);
  color: var(--auth-text);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Outfit, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: #0f1d3e;
}

.auth-logo i {
  color: var(--auth-primary);
}

.auth-title {
  font-family: Outfit, sans-serif;
  margin: 1rem 0 0.25rem;
  font-size: 1.8rem;
}

.auth-subtitle {
  margin: 0 0 1rem;
  color: var(--auth-muted);
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.92rem;
  color: #334155;
}

.auth-input {
  width: 100%;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
}

.auth-input:focus {
  outline: none;
  border-color: #7ea0ff;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.14);
}

.auth-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.82rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--auth-primary);
  cursor: pointer;
}

.auth-btn:hover {
  background: var(--auth-primary-dark);
}

.auth-status {
  min-height: 1.35rem;
  font-size: 0.93rem;
}

.auth-status.error {
  color: var(--auth-danger);
}

.auth-status.success {
  color: var(--auth-success);
}

.auth-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.dashboard-card {
  width: min(860px, 100%);
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dashboard-badge {
  border: 1px solid var(--auth-border);
  background: #f8fafc;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

pre.dashboard-json {
  margin: 0;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 12px;
  padding: 1rem;
  overflow: auto;
  font-size: 0.9rem;
}

.invite-panel {
  margin-top: 1rem;
  border-top: 1px solid var(--auth-border);
  padding-top: 1rem;
}

.invite-title {
  margin: 0 0 0.35rem;
  font-family: Outfit, sans-serif;
  font-size: 1.25rem;
}

.invite-form {
  margin-top: 0.5rem;
}

.invite-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invite-result {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--auth-border);
}

.invite-link {
  color: #1d4ed8;
  word-break: break-all;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .invite-grid {
    grid-template-columns: 1fr;
  }
}
