/* Zent website: same colors and type as the app (theme.js) */
:root {
  --primary: #2da1ff;
  --primary-pressed: #1e8fea;
  --primary-soft: #d8eeff;
  --tint: #e4f4ff;
  --ink: #111111;
  --ink-soft: #4a5361;
  --muted: #8a94a3;
  --line: #dce7f2;
  --surface: #ffffff;
  --background: #f3f8fd;
  --success: #2fbf71;
  --danger: #ff4b40;
  --danger-soft: #ffeceb;
  --shadow: 0 6px 24px rgba(11, 59, 102, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #2da1ff 0%, #6ac2ff 220px, #c2ecff 420px, var(--background) 640px) no-repeat, var(--background);
  min-height: 100vh;
}

main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(44px, 10vw, 64px); font-weight: 900; letter-spacing: -2px; margin: 0; line-height: 1; }
.hero p { font-size: 18px; font-weight: 600; color: var(--ink); margin: 10px 0 0; opacity: 0.8; }
.hero img { width: min(42vw, 240px); height: auto; animation: float 4s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }

.card { background: var(--surface); border-radius: 24px; padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 6px; }
.card > p { color: var(--ink-soft); line-height: 1.5; margin: 0 0 16px; }

.label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.version { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; }
.notes { background: var(--tint); border-radius: 14px; padding: 12px 14px; color: var(--ink-soft); margin-top: 12px; font-size: 15px; }

form { display: grid; gap: 12px; }
input {
  width: 100%; height: 54px; padding: 0 16px; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; outline: none;
}
input:focus { border-color: var(--primary); }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 24px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; text-decoration: none;
  background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(45, 161, 255, 0.3);
}
button:hover { background: var(--primary-pressed); }
button:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
button.secondary { background: var(--primary-soft); color: var(--ink); box-shadow: none; }
button.link { background: none; color: var(--primary); box-shadow: none; padding: 0; min-height: 0; }
button.link:hover { background: none; text-decoration: underline; }
button.forgot { justify-self: center; font-weight: 700; }

.error { color: var(--danger); font-weight: 600; margin: 0; }
.ok { color: var(--success); font-weight: 700; margin: 0; }
.hidden { display: none !important; }

.devices { display: grid; gap: 10px; margin-top: 6px; }
.device { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--background); flex-wrap: wrap; }
.device .info { flex: 1; min-width: 160px; }
.device .name { font-weight: 800; font-size: 17px; }
.device .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.dot.on { background: var(--success); }
.dot.off { background: var(--danger); }
.status { font-size: 14px; font-weight: 700; color: var(--primary); }
.status.failed { color: var(--danger); }
.status.done { color: var(--success); }
.signed-in { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-soft); flex-wrap: wrap; }

ol { padding-left: 20px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; }
esp-web-install-button button { width: 100%; }
.warning { background: var(--danger-soft); color: var(--danger); border-radius: 14px; padding: 12px 14px; font-weight: 600; }

footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
