/* Ray Health — My Account login / register / lost password */

body.pharmacymentor-child.woocommerce-account {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-surface-muted);
}

body.pharmacymentor-child.woocommerce-account .woocommerce {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 24px);
}

body.pharmacymentor-child.woocommerce-account.logged-in .woocommerce {
  max-width: 1200px;
}

/* Page title */
body.pharmacymentor-child .my-account-form-wrapper .main-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-dark);
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

body.pharmacymentor-child .my-account-form-wrapper #woo-login h2,
body.pharmacymentor-child .my-account-form-wrapper #woo-register h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--color-dark);
  margin: 1.5rem 0 1.25rem;
}

/* Form card */
body.pharmacymentor-child .woocommerce .login-wrapper {
  border: none;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Login / Register switch */
body.pharmacymentor-child .woocommerce .login-wrapper .switch-wrapper {
  margin-bottom: 0.5rem;
}

body.pharmacymentor-child .woocommerce .login-wrapper .switch-wrapper ul {
  display: flex;
  align-items: stretch;
  gap: 6px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-pill);
  padding: 6px;
  list-style: none;
  margin: 0;
}

body.pharmacymentor-child .woocommerce .login-wrapper .switch-wrapper li {
  flex: 1 1 50%;
  text-align: center;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-muted);
  transition: background-color var(--transition-ui), color var(--transition-ui),
    box-shadow var(--transition-ui);
}

body.pharmacymentor-child .woocommerce .login-wrapper .switch-wrapper li:hover {
  color: var(--color-dark);
}

body.pharmacymentor-child .woocommerce .login-wrapper .switch-wrapper li.active {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

/* Notices / info / errors — leave room for WooCommerce ::before icon */
body.pharmacymentor-child.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error,
body.pharmacymentor-child.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
body.pharmacymentor-child.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
body.pharmacymentor-child.woocommerce-account .woocommerce-info,
body.pharmacymentor-child.woocommerce-account .woocommerce-message,
body.pharmacymentor-child.woocommerce-account .woocommerce-error,
body.pharmacymentor-child .login-wrapper .woocommerce-info,
body.pharmacymentor-child .login-wrapper .woocommerce-message,
body.pharmacymentor-child .login-wrapper .woocommerce-error {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  background: var(--color-cream);
  color: var(--color-dark);
  padding: 1em 1.5em 1em 3.5em !important;
  margin: 0 0 1.25rem !important;
  list-style: none !important;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-error {
  border-top-color: #c44;
  background: #fdf2f2;
  border-color: #f0c9c9;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-message {
  border-top-color: #2f8f4e;
  background: #f1faf4;
  border-color: #c6e6d1;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-error li,
body.pharmacymentor-child.woocommerce-account .woocommerce-message li,
body.pharmacymentor-child.woocommerce-account .woocommerce-info li,
body.pharmacymentor-child .login-wrapper .woocommerce-error li,
body.pharmacymentor-child .login-wrapper .woocommerce-message li,
body.pharmacymentor-child .login-wrapper .woocommerce-info li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-info::before,
body.pharmacymentor-child.woocommerce-account .woocommerce-message::before,
body.pharmacymentor-child.woocommerce-account .woocommerce-error::before,
body.pharmacymentor-child .login-wrapper .woocommerce-info::before,
body.pharmacymentor-child .login-wrapper .woocommerce-message::before,
body.pharmacymentor-child .login-wrapper .woocommerce-error::before {
  position: absolute !important;
  top: 1em !important;
  left: 1.25em !important;
  font-size: 1.1em;
  line-height: 1;
  margin: 0 !important;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-info::before,
body.pharmacymentor-child .login-wrapper .woocommerce-info::before {
  color: var(--color-gold-dark) !important;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-error::before,
body.pharmacymentor-child .login-wrapper .woocommerce-error::before {
  color: #c44 !important;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-message::before,
body.pharmacymentor-child .login-wrapper .woocommerce-message::before {
  color: #2f8f4e !important;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-info a,
body.pharmacymentor-child .login-wrapper .woocommerce-info a,
body.pharmacymentor-child.woocommerce-account .woocommerce-error a {
  color: var(--color-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Labels & fields */
body.pharmacymentor-child .login-wrapper .woocommerce-form label,
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword label,
body.pharmacymentor-child.woocommerce-account .woocommerce-form-lost-password label {
  color: var(--color-dark) !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form label .required,
body.pharmacymentor-child.woocommerce-account .required {
  color: #c44;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
body.pharmacymentor-child .login-wrapper .woocommerce-form select,
body.pharmacymentor-child .login-wrapper .woocommerce-form textarea,
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword input:not([type="submit"]),
body.pharmacymentor-child.woocommerce-account .woocommerce-form-lost-password input:not([type="submit"]) {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--color-dark) !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary);
  font-size: 16px;
  box-shadow: none !important;
  transition: border-color var(--transition-ui), box-shadow var(--transition-ui);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form textarea {
  height: auto;
  min-height: 100px;
  padding: 14px 16px !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form input:focus:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
body.pharmacymentor-child .login-wrapper .woocommerce-form select:focus,
body.pharmacymentor-child .login-wrapper .woocommerce-form textarea:focus {
  border-color: var(--color-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 181, 84, 0.35) !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .form-row {
  margin-bottom: 1.25rem !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  cursor: pointer;
}

/* Primary submit — gold pill (matches Get Started) */
body.pharmacymentor-child .login-wrapper .woocommerce-form button.button,
body.pharmacymentor-child .login-wrapper .woocommerce-form .woocommerce-button,
body.pharmacymentor-child .login-wrapper .woocommerce-form-login__submit,
body.pharmacymentor-child .login-wrapper .woocommerce-form-register__submit,
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword .woocommerce-Button,
body.pharmacymentor-child.woocommerce-account .woocommerce-form-lost-password button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  margin-right: 0;
  padding: 16px 34px !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  background-color: var(--color-gold) !important;
  background-image: none !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition-fast), filter var(--transition-ui),
    box-shadow var(--transition-ui);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form button.button:hover,
body.pharmacymentor-child .login-wrapper .woocommerce-form .woocommerce-button:hover,
body.pharmacymentor-child .login-wrapper .woocommerce-form-login__submit:hover,
body.pharmacymentor-child .login-wrapper .woocommerce-form-register__submit:hover,
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword .woocommerce-Button:hover,
body.pharmacymentor-child.woocommerce-account .woocommerce-form-lost-password button.button:hover {
  filter: brightness(1.03);
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
  background-color: var(--color-gold) !important;
  color: var(--color-dark) !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form button.button:active,
body.pharmacymentor-child .login-wrapper .woocommerce-form-login__submit:active,
body.pharmacymentor-child .login-wrapper .woocommerce-form-register__submit:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form button.button:focus-visible,
body.pharmacymentor-child .login-wrapper .woocommerce-form-login__submit:focus-visible,
body.pharmacymentor-child .login-wrapper .woocommerce-form-register__submit:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 2px;
}

/* Space between privacy / helper text and Register button */
body.pharmacymentor-child .login-wrapper .woocommerce-form-register .woocommerce-privacy-policy-text,
body.pharmacymentor-child .login-wrapper .woocommerce-form-register .woocommerce-privacy-policy-text p {
  margin: 0 0 1.5rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-size: 14px;
}

body.pharmacymentor-child .login-wrapper .woocommerce-privacy-policy-text a,
body.pharmacymentor-child .login-wrapper .woocommerce-privacy-policy-text .woocommerce-privacy-policy-link {
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition-ui), text-decoration-color var(--transition-ui);
}

body.pharmacymentor-child .login-wrapper .woocommerce-privacy-policy-text a:hover,
body.pharmacymentor-child .login-wrapper .woocommerce-privacy-policy-text .woocommerce-privacy-policy-link:hover {
  color: var(--color-gold-dark);
  text-decoration-color: var(--color-gold-dark);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form-register .form-row:has(.woocommerce-form-register__submit),
body.pharmacymentor-child .login-wrapper .woocommerce-form-register .woocommerce-form-row:has(.woocommerce-form-register__submit) {
  margin-top: 1.5rem !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form-register__submit {
  margin-top: 0.5rem;
}

/* Footer links under login */
body.pharmacymentor-child .woocommerce .woocommerce-form-login .lost_password,
body.pharmacymentor-child .woocommerce .login-wrapper .woocommerce-LostPassword {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-gold);
}

body.pharmacymentor-child .woocommerce .login-wrapper .lost_password a,
body.pharmacymentor-child .woocommerce .login-wrapper .woocommerce-LostPassword a {
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition-ui);
}

body.pharmacymentor-child .woocommerce .login-wrapper .lost_password a:hover,
body.pharmacymentor-child .woocommerce .login-wrapper .woocommerce-LostPassword a:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Lost / reset password cards */
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword,
body.pharmacymentor-child.woocommerce-account .woocommerce-form-lost-password {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword > p:first-of-type,
body.pharmacymentor-child.woocommerce-account .lost_reset_password > p:not(.form-row):not(.woocommerce-form-row):first-of-type {
  margin: 0 0 1.5rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-size: 15px;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword .form-row-first,
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword .woocommerce-form-row--first {
  margin-top: 0.25rem !important;
  margin-bottom: 1.25rem !important;
}

body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword .form-row-first label,
body.pharmacymentor-child.woocommerce-account .woocommerce-ResetPassword .woocommerce-form-row--first label {
  margin-bottom: 10px;
}

/* File upload — Upload ID dropzone */
body.pharmacymentor-child .login-wrapper .woocommerce-form .form-row:has(.cflp-file-input) > label,
body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id > label {
  display: block;
  font-weight: 600 !important;
  color: var(--color-dark) !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .form-row:has(.cflp-file-input) .description,
body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id .description {
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 14px;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 22px 20px;
  border: 2px dashed var(--color-gold);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition-ui), background-color var(--transition-ui),
    box-shadow var(--transition-ui);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__zone:hover,
body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__zone.is-dragover {
  border-color: var(--color-gold-dark);
  background: #fff8e8;
  box-shadow: 0 0 0 3px rgba(221, 181, 84, 0.2);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-gold-dark);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__formats {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__status {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id__status.has-file {
  color: var(--color-dark);
  font-weight: 600;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id .cflp-file-input,
body.pharmacymentor-child .login-wrapper .woocommerce-form .pm-upload-id input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  border: none !important;
  background: transparent !important;
  font-size: 0 !important;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .custom-date-input select {
  min-width: 0;
}

/* Password visibility toggle — vertically centered in 52px inputs */
body.pharmacymentor-child .login-wrapper .woocommerce-form .password-input {
  position: relative;
  display: block;
}

body.pharmacymentor-child .login-wrapper .woocommerce-form .password-input input {
  padding-right: 48px !important;
}

body.pharmacymentor-child .login-wrapper .show-password-input,
body.pharmacymentor-child .login-wrapper .woocommerce-form .show-password-input,
body.pharmacymentor-child .woocommerce #customer_login form .show-password-input,
body.pharmacymentor-child .woocommerce .woocommerce-form-login .show-password-input,
body.pharmacymentor-child .woocommerce form.woocommerce-form-register .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 576px) {
  body.pharmacymentor-child .woocommerce .login-wrapper .lost_password,
  body.pharmacymentor-child .woocommerce .login-wrapper .woocommerce-LostPassword {
    flex-direction: column;
    align-items: flex-start;
  }

  body.pharmacymentor-child .woocommerce .login-wrapper .switch-wrapper li {
    font-size: 15px;
    padding: 10px 12px;
  }
}
