/** Login page styles */
:root {
  /* TELUS Health DS — purple */
  --purple-dark: #371E47;
  --purple: #4B286D;
  --purple-medium: #613889;
  --purple-light: #7C53A5;
  --purple-graphic: #9F7EBF;
  --purple-lighter: #D8CBE5;
  --purple-lightest: #F2EFF4;
  --purple-muted: rgba(75, 40, 109, 0.1);

  /* TELUS Health DS — neutral */
  --thunder: #2C2E30;
  --charcoal: #424547;
  --shuttle: #686E71;
  --concrete: #858B8F;
  --cloud: #B3B9BE;
  --mystic: #E3E6E8;
  --athens: #F4F4F7;
  --alabaster: #FAFAFA;
  --white: #FFFFFF;

  /* Legacy grey aliases (mapped to DS neutrals) */
  --grey-50: var(--alabaster);
  --grey-100: var(--athens);
  --grey-200: var(--mystic);
  --grey-300: var(--mystic);
  --grey-500: var(--shuttle);
  --grey-700: var(--charcoal);

  /* Status & interaction */
  --green: #2B8000;
  --green-hover: #236600;
  --green-light: rgba(43, 128, 0, 0.1);
  --green-bg: #EAF2E5;
  --red: #C12335;
  --orange: #B55308;
  --focus: #2681E1;
  --scrim: rgba(44, 46, 48, 0.25);

  /* Brand gradients (use sparingly) */
  --gradient-purple: linear-gradient(-45deg, #4B286D 0%, #E53293 100%);
  --gradient-green: linear-gradient(-45deg, #00804B 0%, #66CC00 100%);

  --shadow-sm: 0 1px 3px rgba(44, 46, 48, 0.06), 0 1px 2px rgba(44, 46, 48, 0.04);
  --shadow-md: 0 6px 20px rgba(44, 46, 48, 0.08);
  --shadow-lg: 0 14px 40px rgba(44, 46, 48, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --border-subtle: var(--mystic);
  --sidebar-width: 320px;
  --header-height: 72px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: "HNforTELUSSA", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "HNforTELUSSADisplay", "HNforTELUSSA", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-micro: "HNforTELUSSAMicro", "HNforTELUSSA", sans-serif;
  --font-feature: "ss08" on, "ss04" on, "ss01" on, "salt" on;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: var(--font-feature);
  background: var(--athens);
  color: var(--charcoal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
.page-header h1,
.login-card__title,
.contact-hero__title {
  font-family: var(--font-display);
  font-feature-settings: var(--font-feature);
}
.lang-dropdown {
  position: relative;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  min-width: 148px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey-700);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}

.lang-select:hover,
.lang-dropdown.open .lang-select {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-sm);
}

.lang-select .lang-globe {
  display: none;
  font-size: 1.25rem;
  color: var(--purple);
}

.lang-select .lang-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--grey-500);
  transition: transform var(--transition);
}

.lang-dropdown.open .lang-select .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .lang-dropdown:hover .lang-select {
    border-color: var(--purple-light);
    box-shadow: var(--shadow-sm);
  }

  .lang-dropdown:hover .lang-select .lang-chevron {
    transform: rotate(180deg);
  }

  .lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--purple-muted);
  color: var(--purple);
  outline: none;
}

.lang-option[aria-selected="true"] {
  background: var(--green-light);
  color: var(--green);
}

.flag-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.flag {
  display: block;
  width: 20px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: top;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ── Login page ── */
body.login-page {
  min-height: 100vh;
  background: var(--purple-dark);
}

.login-page__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-page__wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 2rem;
}

.login-card {
  position: relative;
  width: min(100%, 440px);
  padding: 2.75rem 2.25rem 2.25rem;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(15, 8, 24, 0.32),
    0 8px 24px rgba(75, 40, 109, 0.12);
}

.login-card__lang {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.login-card__lang .lang-select {
  min-width: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.login-card__lang .lang-select .lang-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--purple);
  flex-shrink: 0;
}

.login-card__lang .lang-select .lang-chevron {
  display: none;
}

.login-card__lang .lang-select .lang-globe,
.login-card__lang .lang-select > .flag {
  display: none;
}

.login-card__lang .lang-menu {
  right: 0;
  left: auto;
}

.login-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
  text-decoration: none;
}

.login-card__logo .logo-img {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(100%, 230px);
  object-fit: contain;
}

.login-card__logo .logo-img.logo-img--fr {
  height: 28px;
  max-width: min(100%, 209px);
}

.login-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--purple);
  text-align: center;
  margin-bottom: 0.75rem;
}

.login-card__lead {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--shuttle);
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.login-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.login-form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
}

.login-form__input {
  width: 100%;
  padding: 0.8125rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--grey-700);
  background: var(--alabaster);
  border: 1px solid var(--mystic);
  border-radius: 10px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.login-form__input:hover {
  border-color: var(--grey-300);
  background: var(--white);
}

.login-form__input:focus-visible {
  outline: none;
  background: var(--white);
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(38, 129, 225, 0.25);
}

.login-form__input::placeholder {
  color: var(--grey-500);
}

.login-form__input-wrap,
.login-form__password-wrap {
  position: relative;
}

.login-form__input-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  z-index: 1;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--grey-500);
  pointer-events: none;
  transform: translateY(-50%);
}

.login-form__input--with-icon {
  padding-left: 2.625rem;
}

.login-form__input--password {
  padding-right: 2.75rem;
}

.login-form__toggle-password {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--grey-500);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color var(--transition), background var(--transition);
}

.login-form__toggle-password:hover {
  color: var(--purple);
  background: var(--purple-muted);
}

.login-form__toggle-password:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.login-form__toggle-password .login-form__toggle-icon,
.login-form__toggle-password .ti {
  font-size: 1.125rem;
  line-height: 1;
}

.login-form__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: var(--grey-500);
  cursor: pointer;
  user-select: none;
}

.login-form__remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--purple);
}

.login-form__field--recaptcha {
  display: flex;
  justify-content: center;
}

.login-form__field--recaptcha .g-recaptcha {
  transform-origin: center top;
}

.login-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.login-form__submit:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-1px);
}

.login-form__submit:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.login-form__temp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.625rem;
  padding: 0.625rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--purple);
  background: var(--white);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.login-form__temp:hover {
  border-color: var(--purple-light);
  background: var(--purple-lightest);
}

.login-form__temp:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.login-form__submit .ti {
  font-size: 1.125rem;
}

a.login-form__submit,
a.login-form__submit:hover,
a.login-form__submit:focus,
a.login-form__submit:focus-visible,
a.login-form__submit:active {
  text-decoration: none !important;
  color: var(--white);
}

.login-site-footer {
  flex-shrink: 0;
  background: transparent;
  padding: 0.75rem 1.5rem 1.25rem;
  box-shadow: none;
}

.login-site-footer__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.4;
}

.login-site-footer a,
.login-site-footer__copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.login-site-footer a {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.login-site-footer a:hover {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
}

.login-site-footer__copy {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

@media (max-width: 640px) {
  .login-page__wrap {
    padding: 1.5rem 1rem 1.25rem;
  }

  .login-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 16px;
  }

  .login-site-footer {
    padding: 0.625rem 0.75rem 1rem;
  }

  .login-site-footer__inner {
    gap: clamp(0.375rem, 2.5vw, 0.75rem) clamp(0.5rem, 3vw, 1rem);
    font-size: clamp(0.625rem, 2.6vw, 0.6875rem);
  }
}

.login-form__error {
  margin: 0;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--red);
  background: rgba(193, 35, 53, 0.08);
  border: 1px solid rgba(193, 35, 53, 0.18);
  border-radius: 10px;
  text-align: center;
}

.login-form__notice {
  margin: 0;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--charcoal);
  background: var(--alabaster);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: center;
}

.login-form__notice--success {
  color: var(--green);
  background: var(--green-bg);
  border-color: rgba(43, 128, 0, 0.18);
}

.download-gate__form {
  margin: 0;
}

.download-gate__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.download-gate__notice .ti {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--shuttle);
}

.login-form__links {
  margin: 0.25rem 0 0;
  text-align: center;
}

.login-form__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
}

.login-form__link:hover {
  color: var(--purple-medium);
  text-decoration: underline;
}

.login-form__link--button {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  background: var(--purple);
  border-radius: 999px;
  text-decoration: none;
}

.login-form__link--button:hover {
  color: var(--white);
  background: var(--purple-medium);
  text-decoration: none;
}

body.login-page {
  display: flex;
  flex-direction: column;
}

.login-page__shell {
  flex: 1;
  width: 100%;
}

/* Hide WPML default footer switcher — login uses the card language control */
body.login-page .wpml-ls-statics-footer {
  display: none !important;
}

