/* Voihost portal — guest splash. Colours come from /brand/<site>/theme.css. */
:root {
  --primary: #1f6feb;
  --on-primary: #ffffff;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2328;
  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --line: color-mix(in srgb, var(--text) 16%, transparent);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 28px rgb(0 0 0 / 8%);
}

.brand { text-align: center; margin-bottom: 18px; }
.brand .logo { max-width: 200px; max-height: 90px; width: auto; height: auto; }
.brand-name { font-size: 1.35rem; font-weight: 700; }

h1 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 8px; text-align: center; }
h2 { font-size: 1.1rem; margin: 20px 0 6px; }
h3 { font-size: 0.95rem; margin: 14px 0 4px; }
p { margin: 0 0 12px; }

.stack { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }

label { font-weight: 600; font-size: 0.95rem; }

input[type="email"], input[type="text"], input[type="tel"] {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #1f2328;
}
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

input.code {
  font-size: 1.8rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.4;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }

button, .button {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  padding: 13px 16px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
}
button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
}
button.link {
  background: none;
  color: var(--primary);
  padding: 8px;
  font-weight: 500;
  text-decoration: underline;
}

.row { display: flex; flex-direction: column; gap: 4px; }

.alert, .notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}
.alert { background: #fdecea; color: #8a1c12; border: 1px solid #f5c2bd; }
.notice { background: #e8f5ee; color: #155c35; border: 1px solid #b9e2c9; }

.small { font-size: 0.85rem; }
.muted { color: var(--muted); }

details.legal {
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  margin-top: 10px;
  font-size: 0.88rem;
}
details.legal summary { cursor: pointer; font-weight: 600; color: var(--primary); }
details.legal p { margin: 4px 0 8px; }

.foot {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.foot a { color: inherit; }
.powered { opacity: 0.8; }

@media (max-width: 380px) {
  body { padding: 12px; }
  .card { padding: 22px 16px; }
}
