:root {
  --blue: #1B1AE8;
  --blue-dark: #0A0826;
  --orange: #FF5500;
  --gray-100: #F4F4F8;
  --gray-500: #7A7A9A;
  --gray-700: #3A3A5C;
  --white: #FFFFFF;
  --radius: 10px;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--gray-100);
  color: var(--blue-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(10, 8, 38, 0.08);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.card--wide { max-width: 560px; }

h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }

label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; margin-top: 16px; }
label:first-of-type { margin-top: 0; }

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { background: var(--gray-500); cursor: not-allowed; }
.btn--whatsapp { background: #25D366; }

.error {
  background: #FFF0F0;
  color: #C0392B;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.muted { color: var(--gray-500); font-size: 0.9rem; margin-top: 16px; text-align: center; }
.muted a { color: var(--blue); text-decoration: underline; }

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status--connected { background: rgba(37,211,102,0.15); color: #1a8f4a; }
.status--not_connected { background: rgba(122,122,154,0.15); color: var(--gray-700); }
.status--pending { background: rgba(255,85,0,0.15); color: var(--orange); }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar form { margin: 0; }
.topbar button {
  background: none; border: none; color: var(--gray-500); cursor: pointer; font-size: 0.85rem; text-decoration: underline;
}
