/* Sign-in, tablet and admin pages of wk_web. Tokens, font and controls come from the board's board.css. */

.page {
  width: min(100% - 32px, 560px);
  margin: clamp(24px, 8vh, 96px) auto 48px;
}
.page h1 { margin-bottom: 24px; }

.panel {
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 12px; color: var(--ink); font-size: clamp(24px, 2vw, 30px); font-weight: 800; }
.panel p { margin: 0 0 18px; }
.panel a { color: var(--action-ink); font-weight: 600; text-underline-offset: 3px; }
.panel .help { margin-top: 18px; }
.panel .error { margin: 0 0 14px; }

.button-link {
  display: grid;
  place-items: center;
  color: #fff !important;
  text-decoration: none;
}

.text-input {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--card);
  color: var(--ink);
  font-size: 21px;
}

.new-code { border: 2px solid var(--action); }
.code { color: var(--ink); font-size: clamp(40px, 8vw, 56px); font-weight: 800; letter-spacing: 0.04em; }

.devices { width: 100%; margin-bottom: 24px; border-collapse: collapse; font-size: 17px; }
.devices th { color: var(--muted); font-weight: 600; text-align: left; }
.devices th, .devices td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.devices form { margin: 0; }
.new-device .field { margin-bottom: 14px; }

/* Betriebsarten form (TUC-1974); the class name avoids the board's .modes and .mode-* rules */
.mode-settings fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.mode-settings legend { padding: 0; margin-bottom: 14px; color: var(--ink); font-size: 21px; font-weight: 800; }
.mode-settings .field { margin-bottom: 16px; }
.mode-settings .error { margin: 8px 0 0; }
