/* All Heart Marketing — login theme (matches /join) */
:root {
  --ahm-bg: #0f1218;
  --ahm-bg2: #171c26;
  --ahm-card: #1c2330;
  --ahm-line: rgba(255,255,255,.08);
  --ahm-text: #f4f1ea;
  --ahm-muted: #a7b0c0;
  --ahm-accent: #6750A1;
  --ahm-accent2: #444459;
  --ahm-good: #3ecf8e;
  --ahm-radius: 18px;
  --ahm-shadow: 0 20px 50px rgba(0,0,0,.35);
}

html body.ahm-login {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(103,80,161,.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(68,68,89,.22), transparent 50%),
    var(--ahm-bg) !important;
  color: var(--ahm-text) !important;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

/* Top bar */
body.ahm-login .navbar-fixed-top {
  position: absolute !important;
  top: 0; left: 0; right: 0;
  z-index: 20;
}
body.ahm-login .navbar .separator {
  display: none !important;
}
body.ahm-login .navbar-inner {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  padding: 1rem 0 !important;
  min-height: 0 !important;
}
body.ahm-login .navbar .brand {
  color: var(--ahm-text) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  letter-spacing: .02em;
  display: inline-flex !important;
  align-items: center;
  gap: .65rem;
  font-size: 1.05rem !important;
  padding: 0 !important;
  margin-left: .25rem !important;
}
body.ahm-login .navbar .brand:hover {
  color: #fff !important;
  text-decoration: none !important;
}
body.ahm-login .navbar .main-gravatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(103,80,161,.35);
  object-fit: cover;
  /* hide broken gravatar look — still ok if logo exists */
  background: linear-gradient(135deg, var(--ahm-accent), var(--ahm-accent2));
}
body.ahm-login .container-fluid {
  background: transparent !important;
}

/* Center card */
body.ahm-login #wrapper {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  height: auto !important;
  width: min(400px, calc(100vw - 2rem)) !important;
  z-index: 5;
}

body.ahm-login #login-form.well,
body.ahm-login form#login-form {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--ahm-card) !important;
  border: 1px solid var(--ahm-line) !important;
  border-radius: var(--ahm-radius) !important;
  box-shadow: var(--ahm-shadow) !important;
  padding: 1.75rem 1.5rem 1.35rem !important;
  width: 100% !important;
  max-width: 400px !important;
  box-sizing: border-box !important;
  color: var(--ahm-text) !important;
}

body.ahm-login #login-form h2 {
  margin: 0 0 .35rem !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--ahm-text) !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}
body.ahm-login #login-form h2 .icon {
  color: var(--ahm-accent) !important;
  margin: 0 !important;
}

body.ahm-login #login-form .input,
body.ahm-login #login-form input[type="text"],
body.ahm-login #login-form input[type="password"],
body.ahm-login #forgot-form input[type="text"],
body.ahm-login #forgot-form .input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  border: 1px solid var(--ahm-line) !important;
  background: #0e131b !important;
  color: var(--ahm-text) !important;
  padding: .8rem .9rem !important;
  height: auto !important;
  font-size: 1rem !important;
  margin: 0 0 .85rem !important;
  box-shadow: none !important;
}
body.ahm-login #login-form input::placeholder,
body.ahm-login #forgot-form input::placeholder {
  color: var(--ahm-muted) !important;
}
body.ahm-login #login-form input:focus,
body.ahm-login #forgot-form input:focus {
  outline: 2px solid rgba(103,80,161,.45) !important;
  border-color: transparent !important;
}

body.ahm-login #login-form br {
  display: none;
}
body.ahm-login #password-row {
  display: block;
  margin: 0;
}
body.ahm-login #login-form > div[style*="height"] {
  height: .35rem !important;
}

body.ahm-login .login-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: .55rem;
  width: 100%;
  white-space: normal !important;
  margin-top: .25rem;
}

body.ahm-login #login-form .btn,
body.ahm-login #password-login-btn,
body.ahm-login #passkey-login-btn,
body.ahm-login #send-pass-btn,
body.ahm-login .modal .btn-inverse {
  appearance: none !important;
  background: linear-gradient(135deg, var(--ahm-accent), var(--ahm-accent2)) !important;
  background-image: linear-gradient(135deg, var(--ahm-accent), var(--ahm-accent2)) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: .85rem 1rem !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(103,80,161,.25) !important;
  flex: 1 1 auto;
  min-width: 140px;
  filter: none !important;
}
body.ahm-login #login-form .btn:hover,
body.ahm-login #password-login-btn:hover,
body.ahm-login #passkey-login-btn:hover,
body.ahm-login #send-pass-btn:hover {
  filter: brightness(1.06) !important;
  color: #fff !important;
}
body.ahm-login #passkey-login-btn {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--ahm-line) !important;
  box-shadow: none !important;
  color: var(--ahm-text) !important;
}

body.ahm-login #login-form p {
  margin: 1rem 0 0 !important;
  text-align: center;
}
body.ahm-login #login-form a.recovery,
body.ahm-login #login-form a {
  color: #c4b5e8 !important;
  text-decoration: none !important;
  font-size: .95rem;
}
body.ahm-login #login-form a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Alerts */
body.ahm-login .alert {
  border-radius: 12px !important;
  border: 1px solid rgba(103,80,161,.35) !important;
  background: rgba(103,80,161,.14) !important;
  color: #e8e0ff !important;
  text-shadow: none !important;
  width: 100% !important;
  max-width: 400px !important;
  box-sizing: border-box !important;
  margin: 0 0 .75rem !important;
  position: relative !important;
  left: auto !important;
}
body.ahm-login .alert-danger {
  background: rgba(232,93,76,.12) !important;
  border-color: rgba(232,93,76,.35) !important;
  color: #ffc4bc !important;
}
body.ahm-login .alert-success {
  background: rgba(62,207,142,.12) !important;
  border-color: rgba(62,207,142,.35) !important;
  color: #b8f5d4 !important;
}
body.ahm-login .session_error {
  width: 100% !important;
}

/* Join CTA under form */
body.ahm-login .ahm-login-footer {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--ahm-muted);
  font-size: .9rem;
}
body.ahm-login .ahm-login-footer a {
  color: #c4b5e8 !important;
  font-weight: 600;
  text-decoration: none !important;
}
body.ahm-login .ahm-login-footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Forgot modal */
body.ahm-login .modal {
  background: var(--ahm-card) !important;
  border: 1px solid var(--ahm-line) !important;
  border-radius: var(--ahm-radius) !important;
  box-shadow: var(--ahm-shadow) !important;
  color: var(--ahm-text) !important;
}
body.ahm-login .modal .modal-header,
body.ahm-login .modal .modal-footer {
  background: transparent !important;
  border-color: var(--ahm-line) !important;
}
body.ahm-login .modal h2,
body.ahm-login .modal h3 {
  color: var(--ahm-text) !important;
  text-shadow: none !important;
}
body.ahm-login .modal .well {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.ahm-login .modal a {
  color: #c4b5e8 !important;
}
body.ahm-login .modal-backdrop,
body.ahm-login .modal-backdrop.fade.in {
  background: #0a0c10 !important;
  opacity: .72 !important;
}

/* Hide default Sendy chrome noise on login */
body.ahm-login .btn-navbar {
  display: none !important;
}

@media (max-width: 480px) {
  body.ahm-login #wrapper {
    width: calc(100vw - 1.25rem) !important;
  }
  body.ahm-login .navbar .brand {
    font-size: .95rem !important;
  }
}


/* Brand mark like /join */
body.ahm-login .navbar .brand .main-gravatar {
  display: none !important;
}
body.ahm-login .navbar .brand::before {
  content: "\2665";
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ahm-accent), var(--ahm-accent2));
  box-shadow: 0 8px 24px rgba(103,80,161,.35);
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
}
