/* Membership system pages (sign in, set password, reset). Tenant-neutral:
   the portal's own look, fonts, and spacing. Copy lives in the templates. */

:root {
  --mem-primary: #0e3d81;
  --mem-primary-dark: #0a2f66;
  --mem-text: #1f2937;
  --mem-text-light: #6b7280;
  --mem-border: #d9dfe8;
  --mem-bg: #f4f6fa;
  --mem-card: #ffffff;
  --mem-danger: #b91c1c;
  --mem-danger-bg: #fef2f2;
  --mem-radius: 12px;
  --mem-font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mem-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body { margin: 0; padding: 0; }

body.kate-mem {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(14, 61, 129, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(124, 58, 237, 0.08), transparent 60%),
    var(--mem-bg);
  color: var(--mem-text);
  font-family: var(--mem-font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.kate-mem__page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}

.kate-mem__card {
  width: 100%;
  max-width: 440px;
  background: var(--mem-card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 32px 32px 28px;
  box-sizing: border-box;
}

.kate-mem__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.kate-mem__logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  display: block;
}

.kate-mem__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.kate-mem__brand-name {
  font-family: var(--mem-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--mem-text);
}

.kate-mem__brand-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mem-text-light);
}

.kate-mem__card h1 {
  font-family: var(--mem-font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--mem-text);
}

.kate-mem__lede {
  margin: 0 0 22px;
  color: var(--mem-text-light);
  font-size: 14.5px;
}

/* HubSpot membership form internals */
.kate-mem form { margin: 0; }

/* The membership tags wrap error slots in <ul class="no-list hs-error-msgs"><li>…</li></ul>.
   HubSpot's default system pages ship the .no-list rule; standalone templates must
   provide it or every empty slot renders as a bullet. */
.kate-mem ul,
.kate-mem ol,
.kate-mem .no-list,
.kate-mem .hs-error-msgs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kate-mem li { list-style: none; margin: 0; padding: 0; }
.kate-mem .hs-error-msgs li:empty { display: none; }
.kate-mem .hs-error-msgs label:empty { display: none; }

.kate-mem label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mem-text);
  margin: 14px 0 6px;
}

.kate-mem .hs-input[type="text"],
.kate-mem .hs-input[type="email"],
.kate-mem .hs-input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--mem-text);
  background: #fff;
  border: 1px solid var(--mem-border);
  border-radius: var(--mem-radius);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.kate-mem .hs-input[type="text"]:focus,
.kate-mem .hs-input[type="email"]:focus,
.kate-mem .hs-input[type="password"]:focus {
  border-color: var(--mem-primary);
  box-shadow: 0 0 0 4px rgba(14, 61, 129, 0.12);
}

.kate-mem .hs-input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--mem-primary);
}

.kate-mem label[for="hs-login-widget-remember"],
.kate-mem #hs-passwordless-auth-checkbox-consent {
  display: inline;
  font-weight: 500;
  color: var(--mem-text-light);
  margin: 0;
}

.kate-mem input[name="remember_me"] { margin-top: 14px; }

.kate-mem .hs-login-widget-show-password {
  float: right;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mem-primary);
  text-decoration: none;
  margin-top: 16px;
}

.kate-mem .hs-button,
.kate-mem input[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 20px;
  height: 46px;
  padding: 0 18px;
  font-family: var(--mem-font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--mem-primary);
  border: none;
  border-radius: var(--mem-radius);
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}

.kate-mem .hs-button:hover,
.kate-mem input[type="submit"]:hover { background: var(--mem-primary-dark); }
.kate-mem .hs-button:active,
.kate-mem input[type="submit"]:active { transform: translateY(1px); }

.kate-mem #hs_login_reset {
  display: inline-block;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mem-primary);
  text-decoration: none;
}
.kate-mem #hs_login_reset:hover { text-decoration: underline; }

.kate-mem .hs-error-msg,
.kate-mem .hs-membership-global-error {
  display: block;
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mem-danger);
  background: var(--mem-danger-bg);
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 10px;
}
.kate-mem .hs-error-msg:empty,
.kate-mem .hs-membership-global-error:empty { display: none; }

/* Passwordless sign-in block, rendered by HubSpot when enabled */
.kate-mem #hs-membership-passwordless-auth-form {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--mem-border);
}
.kate-mem #hs-membership-passwordless-auth-form h3,
.kate-mem #hs-membership-passwordless-auth-form h4 {
  font-family: var(--mem-font-display);
  font-size: 15px;
  margin: 0 0 6px;
}
.kate-mem #hs-membership-passwordless-auth-form p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--mem-text-light);
}
.kate-mem #hs-passwordless-submit {
  background: #fff;
  color: var(--mem-primary);
  border: 1px solid var(--mem-border);
}
.kate-mem #hs-passwordless-submit:hover { background: #f3f6fb; }

/* The "register" link HubSpot appends under the login form */
.kate-mem a[href*="/_hcms/mem/register"] {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--mem-text-light);
  text-decoration: none;
}
.kate-mem a[href*="/_hcms/mem/register"]:hover { text-decoration: underline; }

.kate-mem__help {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--mem-border);
  font-size: 13px;
  color: var(--mem-text-light);
}
.kate-mem__help a { color: var(--mem-primary); font-weight: 600; text-decoration: none; }
.kate-mem__help a:hover { text-decoration: underline; }

.kate-mem__foot {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--mem-text-light);
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .kate-mem__card { padding: 26px 20px 22px; border-radius: 14px; }
  .kate-mem__card h1 { font-size: 23px; }
}
