/**
 * LoginRadius auth styling.
 *
 * Deliberately thin: the SDK renders and styles its own widgets, and its stylesheet
 * owns every class beginning with loginradius-, so our hooks use a fos-auth- prefix
 * to stay out of its way. Reusing .loginradius-modal previously inherited the SDK's
 * `inset: 0` and forced the modal to a fixed height.
 */
.fos-auth-page {
  padding: 48px 0 80px;
  min-height: 50vh;
}

.fos-auth-page--reset {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.fos-auth-page--reset .grid {
  justify-content: center;
  width: 100%;
}
.fos-auth-page--reset .fos-auth-page__column {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  flex: 0 1 440px;
  padding-left: 16px;
  padding-right: 16px;
}

.fos-auth-notice {
  padding: 16px 20px;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  background: #F1F1F1;
  margin-bottom: 24px;
}

.fos-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fos-auth-account {
  position: relative;
}

.fos-auth-account-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  margin-top: -1px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid black;
  border-top: 0;
}
.fos-auth-account-menu[hidden] {
  display: none;
}
.fos-auth-account-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 20px;
  appearance: none;
  border: 0;
  background: white;
  color: black;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.fos-auth-account-menu__item + .fos-auth-account-menu__item {
  border-top: 1px solid black;
}
.fos-auth-account-menu__item:hover, .fos-auth-account-menu__item:focus {
  background: black;
  color: white;
}

.fos-auth-account.is-open .header-btn--sign-in {
  position: relative;
  z-index: 3;
  background-color: white;
  color: black;
  border-bottom-color: white;
}
.fos-auth-account.is-open .header-btn--sign-in:hover, .fos-auth-account.is-open .header-btn--sign-in:focus {
  background-color: white;
  color: black;
}

.header-btn .header-btn__icon {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
}
.header-btn .header-btn__icon svg {
  margin-right: 0;
}
.header-btn .header-btn__icon svg[hidden] {
  display: none;
}
.header-btn .header-btn__avatar {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.header-btn .header-btn__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3866F6;
  color: white;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.header-btn .header-btn__chevron {
  width: 12px;
  height: 12px;
  margin-right: 0;
  margin-left: 6px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.header-btn .header-btn__chevron[hidden] {
  display: none;
}

.fos-auth-account.is-open .header-btn__chevron {
  transform: rotate(180deg);
}

.company-header {
  position: relative;
  z-index: 20;
}
.company-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 767px) {
  .company-header__account {
    display: none;
  }
}
.company-header .header-btn--black,
.dropdown.dark-bg .header-btn--black {
  border-color: white;
}
.dropdown__mobile-sign-in .fos-auth-buttons {
  width: 100%;
}
.dropdown__mobile-sign-in .fos-auth-account,
.dropdown__mobile-sign-in .header-btn--subscribe {
  flex: 1 1 0;
}
.dropdown__mobile-sign-in .header-btn {
  width: 100%;
  justify-content: center;
}

/**
 * Sitewide sign in modal.
 *
 * The container only centres the widget and draws the backdrop; the SDK card is the
 * visible surface. Scrolling happens on the container, so it only appears when the
 * widget is taller than the viewport.
 */
.fos-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
}
.fos-auth-modal[hidden] {
  display: none;
}
.fos-auth-modal__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}
.fos-auth-modal__content {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.fos-auth-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 8px;
  background: transparent;
  border: 0;
  line-height: 0;
  cursor: pointer;
}
.fos-auth-modal__close:hover, .fos-auth-modal__close:focus {
  opacity: 0.7;
}

.fos-auth-modal-open {
  overflow: hidden;
}

.fos-auth-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #3866F6;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.fos-auth-link:hover, .fos-auth-link:focus {
  opacity: 0.75;
}
.fos-auth-link--forgot, .fos-auth-link--signup, .fos-auth-link--login {
  display: inline;
  margin: 0;
}

.fos-auth-remember-line {
  width: 100%;
}

.fos-auth-remember-link {
  margin-left: auto;
  flex-shrink: 0;
}

.fos-auth-status {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  background: #F1F1F1;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.fos-auth-status--error {
  border-color: #c45c5c;
  background: #faf2f2;
}
@media (max-width: 767px) {
  .fos-auth-page {
    padding: 32px 0 56px;
  }
  .fos-auth-modal {
    padding: 12px;
  }
  .fos-auth-modal__content {
    max-width: none;
  }
  .dropdownv3 .fos-auth-account-menu {
    position: static;
  }
}
