/**
 * Auth / onboarding flow (centered card pages).
 */
.page-rheumnow-auth .main.main-page {
  padding-top: 24px;
  padding-bottom: 36px;
  max-width: 560px;
}

/* Prefer the in-form heading over the default page title block. */
.page-rheumnow-auth .region-content > h1,
.page-rheumnow-auth .page-title,
.page-rheumnow-auth .block-page-title-block {
  display: none;
}

.page-rheumnow-auth .site-branding-logo img {
  max-width: 260px;
}

.page-rheumnow-auth h1,
.page-rheumnow-auth .rheumnow-auth-title {
  font-size: 22px;
  font-weight: 700;
  color: #152C49;
  margin: 0 0 10px;
  text-align: center;
  text-transform: none;
}

.page-rheumnow-auth .rheumnow-auth-lead,
.page-rheumnow-auth .rheumnow-auth-form > p {
  font-size: 15px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 18px;
  text-align: center;
}

.page-rheumnow-auth .rheumnow-auth-form label {
  font-weight: 600;
  color: #333;
  text-transform: none;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.page-rheumnow-auth .rheumnow-auth-form .form-item {
  margin-bottom: 14px;
}

.page-rheumnow-auth .rheumnow-auth-form input[type="text"],
.page-rheumnow-auth .rheumnow-auth-form input[type="email"],
.page-rheumnow-auth .rheumnow-auth-form input[type="password"],
.page-rheumnow-auth .rheumnow-auth-form select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
}

.page-rheumnow-auth .rheumnow-auth-form input[type="text"]:focus,
.page-rheumnow-auth .rheumnow-auth-form input[type="email"]:focus,
.page-rheumnow-auth .rheumnow-auth-form input[type="password"]:focus,
.page-rheumnow-auth .rheumnow-auth-form select:focus {
  border-color: #1585fe;
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 133, 254, 0.15);
}

.page-rheumnow-auth .rheumnow-auth-form .description {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* Wizard step indicator */
.rheumnow-wizard-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: wizard-step;
}

.rheumnow-wizard-steps__item {
  flex: 1;
  text-align: center;
  position: relative;
  counter-increment: wizard-step;
}

.rheumnow-wizard-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #d9e2ec;
}

.rheumnow-wizard-steps__item.is-complete:not(:last-child)::after,
.rheumnow-wizard-steps__item.is-current:not(:last-child)::after {
  background: #1585fe;
}

.rheumnow-wizard-steps__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8eef5;
  color: #667788;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.rheumnow-wizard-steps__item.is-current .rheumnow-wizard-steps__marker,
.rheumnow-wizard-steps__item.is-complete .rheumnow-wizard-steps__marker {
  background: #1585fe;
  color: #fff;
}

.rheumnow-wizard-steps__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #667788;
  line-height: 1.3;
}

.rheumnow-wizard-steps__item.is-current .rheumnow-wizard-steps__label {
  color: #152C49;
}

/* Password confirm cleanup */
.page-rheumnow-auth .password-parent,
.page-rheumnow-auth .confirm-parent {
  margin-bottom: 14px;
}

.page-rheumnow-auth .password-strength,
.page-rheumnow-auth .password-confirm-message {
  font-size: 12px;
  margin-top: 4px;
  color: #666;
}

.page-rheumnow-auth .password-strength__meter {
  margin-top: 4px;
}

.page-rheumnow-auth hr {
  display: none;
}

/* Checkbox / privacy — keep input + label on one row */
.page-rheumnow-auth .form-type-checkbox,
.page-rheumnow-auth .js-form-type-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.page-rheumnow-auth .form-type-checkbox > label,
.page-rheumnow-auth .js-form-type-checkbox > label {
  display: inline;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  line-height: 1.4;
}

.page-rheumnow-auth .form-type-checkbox input[type="checkbox"],
.page-rheumnow-auth .js-form-type-checkbox input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
}

/* Interest groups */
.page-rheumnow-auth fieldset {
  border: 1px solid #e5eaf0;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.page-rheumnow-auth fieldset legend {
  font-weight: 700;
  font-size: 14px;
  color: #152C49;
  padding: 0 4px;
}

.page-rheumnow-auth .form-type-checkboxes > label,
.page-rheumnow-auth .form-checkboxes > label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #152C49;
  margin-bottom: 8px;
}

.page-rheumnow-auth .form-type-checkboxes .form-item,
.page-rheumnow-auth .form-checkboxes .form-item {
  margin-bottom: 8px;
}

/*
 * Actions.
 *
 * Selectors go through #edit-actions so they outrank the theme's
 * `#edit-submit { line-height: 38px }` and `.page-user-register #edit-submit`
 * rules, which otherwise make the primary button ~58px tall.
 */
.page-rheumnow-auth .rheumnow-auth-form #edit-actions,
.page-rheumnow-auth .rheumnow-auth-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.page-rheumnow-auth .rheumnow-auth-form #edit-actions .button,
.page-rheumnow-auth .rheumnow-auth-form #edit-actions .form-submit,
.page-rheumnow-auth .rheumnow-auth-form .button,
.page-rheumnow-auth .rheumnow-auth-form .form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-rheumnow-auth .rheumnow-auth-form #edit-actions .button--primary,
.page-rheumnow-auth .rheumnow-auth-form #edit-actions input[type="submit"]:not(.button--secondary),
.page-rheumnow-auth .rheumnow-auth-form a.button--primary {
  background: #1585fe;
  border-color: #1585fe;
  color: #fff;
  min-width: 112px;
}

.page-rheumnow-auth .rheumnow-auth-form #edit-actions .button--primary:hover,
.page-rheumnow-auth .rheumnow-auth-form #edit-actions input[type="submit"]:not(.button--secondary):hover,
.page-rheumnow-auth .rheumnow-auth-form a.button--primary:hover {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.page-rheumnow-auth .rheumnow-auth-form #edit-actions .button--secondary,
.page-rheumnow-auth .rheumnow-auth-form a.button:not(.button--primary) {
  background: #fff;
  border-color: #cfd8e3;
  color: #152C49;
}

.page-rheumnow-auth .rheumnow-auth-form #edit-actions .button--secondary:hover,
.page-rheumnow-auth .rheumnow-auth-form a.button:not(.button--primary):hover {
  background: #f5f8fb;
  border-color: #b5c2d1;
}

.page-rheumnow-auth .rheumnow-auth-form .recaptcha-no-badge-message {
  text-align: center;
  color: #8795a6;
  font-size: 12px;
  line-height: 1.45;
}

.page-rheumnow-auth .rheumnow-auth-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
  text-align: center;
  font-size: 14px;
  color: #5b6b7d;
}

.page-rheumnow-auth .rheumnow-auth-footer a {
  color: #1585fe;
  font-weight: 600;
}

/* Wizard steps: quiet Back on the left, primary action on the right. */
.page-rheumnow-auth .rheumnow-wizard-form #edit-actions {
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #eef2f6;
}

.page-rheumnow-auth .rheumnow-wizard-form #edit-actions .button--secondary {
  margin-right: auto;
  padding-left: 4px;
  padding-right: 4px;
  background: transparent;
  border-color: transparent;
  color: #5b6b7d;
}

.page-rheumnow-auth .rheumnow-wizard-form #edit-actions .button--secondary:hover {
  background: transparent;
  border-color: transparent;
  color: #152C49;
  text-decoration: underline;
}

.page-rheumnow-auth .messages {
  margin-bottom: 16px;
  border-radius: 4px;
}

/* Welcome page (after onboarding) */
.rheumnow-welcome {
  text-align: center;
}

.rheumnow-welcome .rheumnow-wizard-steps {
  margin-bottom: 28px;
}

.rheumnow-welcome__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e7f3ff;
  color: #1585fe;
  animation: rheumnow-welcome-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.rheumnow-welcome__badge svg {
  width: 30px;
  height: 30px;
}

.page-rheumnow-auth .rheumnow-welcome__title {
  font-size: 26px;
  margin-bottom: 8px;
}

.page-rheumnow-auth .rheumnow-welcome p.rheumnow-welcome__lead {
  max-width: 400px;
  margin: 0 auto 24px;
  font-size: 16px;
}

.page-rheumnow-auth .rheumnow-welcome ul.rheumnow-welcome__next {
  list-style: none;
  margin: 0 0 24px !important;
  padding: 0;
  text-align: left;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  overflow: hidden;
}

.rheumnow-welcome__next li + li {
  border-top: 1px solid #e5eaf0;
}

.rheumnow-welcome__next a {
  display: block;
  padding: 13px 40px 13px 16px;
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.rheumnow-welcome__next a::after {
  content: "\203A";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #9aa8b8;
}

.rheumnow-welcome__next a:hover {
  background: #f5f8fb;
}

.rheumnow-welcome__next strong {
  display: block;
  font-size: 14px;
  color: #152C49;
}

.rheumnow-welcome__next span {
  display: block;
  font-size: 13px;
  color: #667788;
  margin-top: 2px;
}

.page-rheumnow-auth .rheumnow-welcome a.button--primary {
  display: inline-flex;
  padding: 10px 24px;
  border-radius: 6px;
  background: #1585fe;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.page-rheumnow-auth .rheumnow-welcome a.button--primary:hover {
  background: #0d6efd;
  color: #fff;
}

@keyframes rheumnow-welcome-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rheumnow-welcome__badge {
    animation: none;
  }
}

@media (max-width: 600px) {
  .page-rheumnow-auth .main.main-page {
    margin-top: 24px;
    padding: 16px 18px 28px;
    border-width: 4px;
  }

  .rheumnow-wizard-steps__label {
    font-size: 11px;
  }
}
