/* Shared styles for the sign-in, sign-up and information pages. */
:root {
  --iq-teal: #127a66;
  --iq-teal-dark: #0d5c4d;
  --iq-ink: #1d2a33;
  --iq-muted: #5b6b75;
  --iq-line: #d7e0e4;
  --iq-bg: #f4f7f6;
  --iq-warn: #8a4b00;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--iq-ink); background: var(--iq-bg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--iq-teal); }
a:hover { color: var(--iq-teal-dark); }

.iq-wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem;
  color: var(--iq-teal); text-decoration: none; letter-spacing: -0.5px; }
.iq-wordmark svg { width: 28px; height: 28px; }

/* Top bar and footer for information pages */
.iq-top { background: #fff; border-bottom: 1px solid var(--iq-line); }
.iq-top-inner, .iq-foot-inner, .iq-page { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.iq-top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.iq-top nav a { margin-left: 20px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.iq-page { background: #fff; margin-top: 32px; margin-bottom: 32px; padding: 32px 40px; border: 1px solid var(--iq-line); border-radius: 10px; }
.iq-page h1 { margin-top: 0; font-size: 1.8rem; line-height: 1.25; }
.iq-page h2 { font-size: 1.2rem; margin-top: 1.8em; }
.iq-page .iq-updated { color: var(--iq-muted); font-size: 0.9rem; margin-top: -0.6em; }
.iq-page table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.iq-page th, .iq-page td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--iq-line); padding: 8px 10px 8px 0; }
.iq-foot { color: var(--iq-muted); font-size: 0.9rem; padding: 8px 0 40px; }
.iq-foot-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.iq-foot nav a { margin-right: 16px; }

/* Sign-in and sign-up */
.iq-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.iq-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--iq-line); border-radius: 12px; padding: 32px; }
.iq-card h1 { font-size: 1.4rem; margin: 18px 0 6px; }
.iq-card .iq-lead { color: var(--iq-muted); margin: 0 0 22px; font-size: 0.95rem; }
.iq-field { margin-bottom: 16px; }
.iq-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.iq-field input[type=text], .iq-field input[type=email], .iq-field input[type=password] {
  width: 100%; padding: 11px 12px; border: 1px solid #b9c7cd; border-radius: 8px; font-size: 1rem; background: #fff; }
.iq-field input:focus { outline: 2px solid var(--iq-teal); outline-offset: 1px; border-color: var(--iq-teal); }
.iq-hint { color: var(--iq-muted); font-size: 0.85rem; margin: 4px 0 0; }
.iq-upload { border: 1px dashed #9fb4bc; border-radius: 8px; padding: 14px; background: #fafcfc; }
.iq-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin: 18px 0 4px; }
.iq-check input { margin-top: 4px; }
.iq-btn { width: 100%; margin-top: 18px; padding: 12px; border: 0; border-radius: 8px; background: var(--iq-teal);
  color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; }
.iq-btn:hover { background: var(--iq-teal-dark); }
.iq-alt { margin-top: 20px; text-align: center; font-size: 0.95rem; }
.iq-error { background: #fff4e5; color: var(--iq-warn); border: 1px solid #f3c98b; border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; margin-bottom: 16px; }
.iq-auth .iq-foot { padding-bottom: 0; margin-top: 22px; text-align: center; }
.iq-auth .iq-foot nav a { margin: 0 8px; }

@media (max-width: 600px) {
  .iq-page { padding: 24px 20px; margin: 16px; }
  .iq-top nav a { margin-left: 12px; font-size: 0.9rem; }
}

.lead { font-size: 1.15rem; color: #202124; }
