/* SDK Connect Account V1.0.1 — matched to the captive portal's light/orange design */
:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #16a34a;
  --green-light: #ecfdf5;
  --background: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #697386;
  --border: #e5eaf1;
  --radius: 22px;
  --shadow: 0 12px 38px rgba(20,35,60,.07);
  --accent: var(--orange);
  --bg: var(--background);
  --line: var(--border);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 50% -10%, #ffedd5 0%, transparent 40%), var(--background);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1200px; padding: 0 24px; margin: 0 auto; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px 0 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; letter-spacing: -.8px; color: var(--text);
}
.brand::before {
  content: '✦'; display: inline-flex; justify-content: center; align-items: center;
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px;
  color: #fff; font-size: 24px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 8px 20px rgba(249,115,22,.25);
}
.brand span { color: var(--orange); }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a, button.link {
  color: #475569; font: inherit; font-size: 14px; font-weight: 650;
}
nav a:hover, button.link:hover { color: var(--orange-dark); }
button.link { border: 0; background: none; cursor: pointer; padding: 0; }
.inline { display: inline; }
main { padding: 38px 0 65px; min-height: 70vh; }
footer { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 13px; }
.hero { margin-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.3px; margin: 4px 0; line-height: 1.18; }
.eyebrow {
  display: inline-block; color: #c2410c; background: #fff7ed;
  border-radius: 999px; padding: 7px 13px;
  font-size: 12px; font-weight: 800; letter-spacing: .7px;
}
.muted { color: var(--muted); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); min-width: 0;
}
.card h2 { margin-top: 5px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 0 22px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth { max-width: 510px; margin: 45px auto; }
.auth h1 { font-size: 31px; line-height: 1.2; letter-spacing: -.7px; }
label { display: block; font-weight: 650; font-size: 14px; margin: 16px 0 0; }
input {
  display: block; width: 100%; background: #fff; border: 1px solid #cbd5e1;
  color: var(--text); padding: 13px 14px; border-radius: 12px; margin-top: 6px;
  font: inherit; min-height: 48px;
}
input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
input:disabled { opacity: .65; background: #f1f5f9; }
input::placeholder { color: #94a3b8; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button {
  display: inline-block; border: 0; border-radius: 13px; padding: 14px 22px;
  margin-top: 20px; min-height: 52px; background: var(--orange);
  color: #fff; font: inherit; font-weight: 800; cursor: pointer; text-align: center;
  box-shadow: 0 7px 18px rgba(249,115,22,.17); transition: background .2s, transform .2s;
}
.button:hover { text-decoration: none; background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.button.secondary { background: #fff7ed; color: #c2410c; box-shadow: none; border: 1px solid #fed7aa; }
.button.secondary:hover { background: #ffedd5; color: #9a3412; }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.notice, .error {
  padding: 15px 18px; border-radius: 14px; margin: 0 0 20px;
  background: var(--green-light); color: #166534; border: 1px solid #bbf7d0;
}
.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block; border: 1px solid #fed7aa; background: #fff7ed;
  color: #c2410c; border-radius: 30px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
@media (max-width: 800px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .top { align-items: flex-start; }
  .auth { margin: 10px auto; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wrap { padding: 0 16px; }
  .top { padding: 22px 0; }
  .brand { font-size: 20px; }
  .brand::before { width: 39px; height: 39px; flex-basis: 39px; }
  main { padding-top: 26px; }
  .card { padding: 24px; }
  .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
