/* ============================================================================
   grommunio — listmonk public-page theme
   Dark page (so the white grommunio logo pops) + a clean light card, vertically centred.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600;700&display=swap');

:root {
  --gm-azure: #009fe3;
  --gm-azure-700: #0369a1;
  --gm-card: #f6f8fc;          /* light container */
  --gm-card-line: #e2e8f2;
  --gm-field: #ffffff;
  --gm-field-line: #d3dded;
  --gm-ink: #0c1625;           /* dark text on the light card */
  --gm-ink-soft: #3a4a63;
  --gm-muted: #6b7a93;
  --gm-page-muted: #8294af;    /* muted text on the dark page (footer) */
}

/* ---- Page (dark, slightly different from grommunio.com, with brand glows) ---- */
html { height: 100%; }
body {
  margin: 0 !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;   /* vertical centring */
  align-items: center !important;
  background-color: #070e1a !important;
  background-image:
    radial-gradient(55rem 38rem at 82% -8%, rgba(0, 159, 227, 0.22), transparent 60%),
    radial-gradient(48rem 38rem at -5% 108%, rgba(13, 148, 136, 0.14), transparent 60%) !important;
  background-attachment: fixed !important;
  color: var(--gm-page-muted) !important;
  font-family: "Noto Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---- Layout: logo (on the dark page) above a centred light card ---- */
.container {
  width: 100%;
  max-width: 30rem !important;
  margin: auto !important;
  padding: 2.5rem 1.25rem !important;
  display: flex;
  flex-direction: column;
}
.logo, img.logo { display: block; max-height: 46px; width: auto; margin: 0 auto 1.85rem !important; }

.wrap, .box, .content {
  background: var(--gm-card) !important;
  color: var(--gm-ink-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 1.25rem !important;
  padding: 2rem 1.75rem !important;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.75) !important;
}

/* ---- Type inside the card ---- */
.wrap h1, .wrap h2, .box h1, .box h2, .content h1, .content h2 { color: var(--gm-ink) !important; font-weight: 600 !important; letter-spacing: -0.01em; }
.wrap h1, .wrap h2 { font-size: 1.55rem !important; }
.wrap h3, .box h3 { font-size: 0.82rem !important; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gm-muted) !important; margin-top: 1.5rem !important; }
.wrap p, .wrap label, .wrap li, .box p, .box label { color: var(--gm-ink-soft) !important; }
.wrap small, .wrap .help, .wrap .muted { color: var(--gm-muted) !important; }
.wrap a, .box a { color: var(--gm-azure-700) !important; text-decoration: none; }
.wrap a:hover, .box a:hover { text-decoration: underline; }

/* ---- Form fields ---- */
.field, p.field { margin-bottom: 1rem !important; }
.wrap label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], textarea, select {
  width: 100% !important;
  background: var(--gm-field) !important;
  border: 1px solid var(--gm-field-line) !important;
  border-radius: 0.7rem !important;
  color: var(--gm-ink) !important;
  padding: 0.7rem 0.95rem !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #93a1b8 !important; }
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--gm-azure) !important;
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.22) !important;
}

/* ---- Checkboxes / radios (list selection) ---- */
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--gm-azure);
  width: 1.1rem; height: 1.1rem;
  flex: 0 0 auto;          /* never shrink — stays on its line */
  margin: 0.1rem 0 0 0;
}
label.checkbox,
.wrap label:has(input[type="checkbox"]),
.wrap label:has(input[type="radio"]) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.6rem;
  text-align: left;
  margin-bottom: 0 !important;
  background: #eef3fa;
  border: 1px solid var(--gm-card-line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  color: var(--gm-ink) !important;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.wrap label:has(input[type="checkbox"]) > *:not(input),
.wrap label:has(input[type="radio"]) > *:not(input) { flex: 1 1 auto; min-width: 0; }
label.checkbox:hover,
.wrap label:has(input[type="checkbox"]):hover,
.wrap label:has(input[type="radio"]):hover { border-color: rgba(0, 159, 227, 0.5); background: rgba(0, 159, 227, 0.07); }

/* ---- Buttons ---- */
.button, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(100deg, var(--gm-azure) 0%, #29b3f6 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.72rem 1.6rem !important;
  font-weight: 600 !important;
  font-size: 0.98rem !important;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 12px 30px -12px rgba(0, 159, 227, 0.8) !important;
  transition: transform .2s, box-shadow .2s;
}
.button:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -12px rgba(0, 159, 227, 0.95) !important; }

/* ---- Messages ---- */
.message, .alert, .notification {
  border-radius: 0.8rem !important; border: 1px solid var(--gm-card-line) !important;
  background: #eef3fa !important; color: var(--gm-ink-soft) !important; padding: 1rem 1.1rem !important;
}

/* ---- List selection (listmonk markup: <ul.lists> <li><input><label>…</label></li>) ---- */
ul.lists { list-style: none !important; padding: 0 !important; margin: 0.5rem 0 0 !important; }
ul.lists li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.6rem;
  background: #eef3fa;
  border: 1px solid var(--gm-card-line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.6rem;
  transition: border-color .2s, background .2s;
}
ul.lists li:last-child { margin-bottom: 0; }
ul.lists li:hover { border-color: rgba(0, 159, 227, 0.5); background: rgba(0, 159, 227, 0.07); }
ul.lists li input[type="checkbox"] { flex: 0 0 auto; margin: 0.12rem 0 0 0; }
ul.lists li label {
  display: inline !important;
  margin: 0 !important;
  flex: 1 1 auto; min-width: 0;
  cursor: pointer;
  color: var(--gm-ink) !important;
}

/* ---- Captcha (ALTCHA) — horizontally centred ---- */
.captcha { display: flex !important; justify-content: center !important; margin: 1rem 0; }
.captcha altcha-widget, .captcha .altcha { margin-left: auto !important; margin-right: auto !important; }

/* ---- Footer removed ---- */
footer, footer.container, .footer { display: none !important; }