/* Header Estudial — étudiants, WCAG 2.2 */

.site-header {
  --sh-bg: #ffffff;
  --sh-border: rgba(12, 39, 179, 0.12);
  --sh-focus: var(--color-primary, #0c27b3);
  --sh-focus-ring: 0 0 0 3px rgba(12, 39, 179, 0.28);
  --sh-height: 4.25rem;
  --sh-font: 'Inter', 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  position: sticky;
  top: 0;
  z-index: 90;
  font-family: var(--sh-font);
  background: var(--sh-bg);
  border-bottom: 1px solid var(--sh-border);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 46, 88, 0.07);
}

.site-header.is-pinned {
  box-shadow: 0 8px 28px rgba(0, 46, 88, 0.12);
  border-bottom-color: rgba(12, 39, 179, 0.08);
}

.site-header__container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ——— Mobile ——— */
.site-header__primary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'menu brand actions';
  align-items: center;
  gap: 0.75rem;
  min-height: var(--sh-height);
}

.site-header__start,
.site-header__end {
  display: contents;
}

.site-header__menu-btn {
  grid-area: menu;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: #161c24;
  cursor: pointer;
}

.site-header__menu-icon {
  display: block;
  width: 1.25rem;
  height: 0.875rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.site-header__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 9.5rem;
}

.site-header__nav {
  display: none;
}

.site-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}

.site-header__search-btn {
  /* hérite de .site-header__tool-btn */
}

/* Boutons d’action header — famille premium Estudial */
.site-header__tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--sh-border);
  border-radius: 0.5rem;
  background: #fff;
  color: #212b36;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  appearance: none;
  box-shadow: 0 1px 2px rgba(0, 46, 88, 0.04);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.site-header__tool-btn .hgi,
.site-header__tool-btn i {
  font-size: 1.125rem;
  color: currentColor !important;
  flex-shrink: 0;
}

.site-header__tool-label {
  display: none;
}

.site-header__tool-btn:hover {
  color: var(--sh-focus);
  border-color: rgba(12, 39, 179, 0.32);
  background: rgba(12, 39, 179, 0.05);
  box-shadow: 0 4px 12px rgba(12, 39, 179, 0.1);
}

.site-header__tool-btn[aria-expanded='true'] {
  color: var(--sh-focus);
  border-color: var(--sh-focus);
  background: var(--color-primary-lighter, #d8e8fd);
  box-shadow: 0 4px 14px rgba(12, 39, 179, 0.14);
}

.site-header__tool-btn--primary {
  border-color: var(--sh-focus);
  color: var(--sh-focus);
  background: #fff;
}

.site-header__tool-btn--primary:hover {
  background: var(--color-primary-lighter, #d8e8fd);
  border-color: var(--sh-focus);
  color: var(--color-primary-dark, #002e58);
}

.site-header__tool-btn--primary[aria-expanded='true'] {
  background: var(--color-primary-lighter, #d8e8fd);
  color: var(--color-primary-dark, #002e58);
}

/* Langue */
.site-header__lang {
  position: relative;
}

.site-header__lang-btn {
  padding-right: 0.625rem;
}

.site-header__lang-chevron {
  display: none;
  transition: transform 0.15s ease;
}

.site-header__lang-btn[aria-expanded='true'] .site-header__lang-chevron {
  transform: rotate(180deg);
}

.site-header__lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 95;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--sh-border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 46, 88, 0.12);
}

.site-header__lang-menu[hidden] {
  display: none;
}

.site-header__lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #212b36;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.site-header__lang-option:hover,
.site-header__lang-option:focus-visible {
  color: var(--sh-focus);
  background: var(--color-primary-lighter, #d8e8fd);
}

.site-header__lang-option[aria-selected='true'] {
  color: var(--sh-focus);
  background: rgba(12, 39, 179, 0.08);
  font-weight: 600;
}

.site-header__lang-option-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background: rgba(12, 39, 179, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-header__lang-option[aria-selected='true'] .site-header__lang-option-code {
  background: var(--sh-focus);
  color: #fff;
}

.site-header__lang-code {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Connexion */
.site-header__login.login-page-btn {
  /* hérite de .site-header__tool-btn--primary */
}

.site-header__login-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.site-header__login-icon .hgi,
.site-header__login-icon i {
  color: currentColor !important;
}

.site-header__login-icon.has-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(12, 39, 179, 0.2);
}

.site-header__login-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__login-label {
  display: none;
}

.site-header__cta {
  display: none;
}

.site-header :is(a, button, input):focus {
  outline: none;
}

.site-header :is(a, button, input):focus-visible {
  outline: 2px solid var(--sh-focus);
  outline-offset: 2px;
  box-shadow: var(--sh-focus-ring);
}

/* ——— Desktop ——— */
@media (min-width: 1280px) {
  .site-header__primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--sh-height);
  }

  .site-header__start {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    flex: 1;
  }

  .site-header__end {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
  }

  .site-header__menu-btn {
    display: none;
  }

  .site-header__brand {
    flex-shrink: 0;
  }

  .site-header__logo {
    height: 2.375rem;
    max-width: 10.5rem;
  }

  .site-header__nav {
    display: block;
    min-width: 0;
  }

  .site-header__nav-list {
    display: flex;
    align-items: center;
    gap: 0.0625rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-header__nav-item {
    position: relative;
    list-style: none;
  }

  .site-header__nav-link,
  .site-header__nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.5rem;
    padding: 0.375rem 0.625rem;
    border: 1.5px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: #212b36;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }

  .site-header__nav-link:hover,
  .site-header__nav-trigger:hover,
  .site-header__nav-trigger[aria-expanded='true'] {
    color: var(--sh-focus);
    background: rgba(12, 39, 179, 0.05);
  }

  .site-header__chevron {
    transition: transform 0.15s ease;
  }

  .site-header__nav-trigger[aria-expanded='true'] .site-header__chevron {
    transform: rotate(180deg);
  }

  .site-header__subnav {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 90;
    min-width: 14.5rem;
    margin: 0;
    padding: 0.375rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--sh-border);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 46, 88, 0.1);
  }

  .site-header__subnav[hidden] {
    display: none;
  }

  .site-header__subnav-link {
    display: block;
    padding: 0.5625rem 0.75rem;
    border-radius: 0.5rem;
    color: #212b36;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
  }

  .site-header__subnav-link:hover,
  .site-header__subnav-link:focus-visible {
    color: var(--sh-focus);
    background: var(--color-primary-lighter, #d8e8fd);
  }

  .site-header__search-btn-label,
  .site-header__tool-label.site-header__search-btn-label,
  .site-header__lang-code,
  .site-header__login-label {
    display: inline;
  }

  .site-header__lang-chevron {
    display: block;
  }

  .site-header__lang-btn {
    padding-right: 0.5rem;
  }

  .site-header__actions {
    gap: 0.5rem;
  }

  .site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1rem 0.625rem 1.125rem;
    border-radius: 0.5rem;
    background: var(--sh-focus);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(12, 39, 179, 0.22);
    transition:
      background-color 0.15s ease,
      box-shadow 0.15s ease,
      transform 0.15s ease;
  }

  .site-header__cta:hover {
    background: var(--color-primary-dark, #0a2199);
    box-shadow: 0 6px 18px rgba(12, 39, 179, 0.28);
    transform: translateY(-1px);
  }

  .site-header__cta-arrow {
    font-size: 1.125rem;
  }

  .site-header__cta .hgi,
  .site-header__cta i {
    color: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__cta,
  .site-header__chevron,
  .site-header__tool-btn {
    transition: none;
  }

  .site-header__cta:hover,
  .site-header__tool-btn:hover {
    transform: none;
  }
}

/* ——— Modal recherche avancée ——— */
.search-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 46, 88, 0.18);
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.search-modal[data-state='open'] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 39, 179, 0.08);
  color: #161c24;
  cursor: pointer;
}

.search-modal__close:hover {
  background: rgba(12, 39, 179, 0.14);
}

.search-modal__body {
  padding: 2rem 1.75rem 1.75rem;
}

.search-modal__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1f33;
}

.search-modal__header p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #637381;
}

.search-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.search-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .search-modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.search-modal__field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #212b36;
}

.search-modal__field input,
.search-modal__field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--sh-border, rgba(12, 39, 179, 0.12));
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #161c24;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.search-modal__field input:focus,
.search-modal__field select:focus {
  border-color: var(--color-primary, #0c27b3);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 39, 179, 0.12);
}

.search-modal__field--wide input {
  font-size: 1rem;
}

.search-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #454f5b;
  cursor: pointer;
}

.search-modal__checkbox input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary, #0c27b3);
}

.search-modal__quick-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #637381;
}

.search-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-modal__chip {
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--sh-border, rgba(12, 39, 179, 0.12));
  border-radius: 999px;
  background: #fff;
  color: #212b36;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.search-modal__chip:hover,
.search-modal__chip:focus-visible {
  color: var(--color-primary, #0c27b3);
  border-color: rgba(12, 39, 179, 0.28);
  background: var(--color-primary-lighter, #d8e8fd);
}

.search-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.search-modal__reset {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #637381;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.search-modal__reset:hover {
  color: #212b36;
  background: rgba(12, 39, 179, 0.06);
}

.search-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-primary, #0c27b3);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 39, 179, 0.22);
}

.search-modal__submit:hover {
  background: var(--color-primary-dark, #0a2199);
}

.search-modal__submit .hgi,
.search-modal__submit i {
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .search-modal {
    transition: none;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(22, 28, 36, 0.48);
}

.modal-overlay.hidden {
  display: none;
}

/* ——— Modal connexion ——— */
.login-page-sidebar {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99;
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(22, 28, 36, 0.24);
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.login-page-sidebar[data-state='open'] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-page-sidebar[data-state='close'] {
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(4, 83, 92, 0.08);
  color: #161c24;
  cursor: pointer;
}

.login-modal-close:hover {
  background: rgba(4, 83, 92, 0.14);
}

.login-modal-body {
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-modal-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1f33;
}

.login-modal-header p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #637381;
}

.login-modal-social {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.login-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.login-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  color: #161c24;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

a.login-social-btn:hover {
  color: #161c24;
  text-decoration: none;
}

.login-social-btn:hover {
  border-color: #c4cdd5;
  background: #f9fafb;
}

.login-modal-divider {
  position: relative;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #919eab;
}

.login-modal-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e8eb;
}

.login-modal-divider span {
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
  background: #fff;
}

.login-demo {
  margin: 0 0 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px dashed #cdd5df;
}

.login-demo__title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0b1f33;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.login-demo__title span {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #04535c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-demo__pass {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: #454f5b;
}

.login-demo__pass code {
  font-size: 0.8125rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: #fff;
  color: #04535c;
}

.login-demo__accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.login-demo__accounts button {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #0b1f33;
  border-radius: 999px;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.login-demo__accounts button:hover,
.login-demo__accounts button.is-active {
  border-color: #04535c;
  color: #04535c;
  background: #eef7f5;
}

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

.login-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #161c24;
}

.login-field input[type='email'],
.login-field input[type='password'],
.login-field input[type='text'] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f7fb;
  color: #161c24;
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.login-field input:focus {
  border-color: #04535c;
  box-shadow: 0 0 0 3px rgba(4, 83, 92, 0.12);
  background: #fff;
}

.login-password-wrap {
  position: relative;
}

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

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #637381;
  cursor: pointer;
}

.login-password-toggle:hover {
  color: #04535c;
}

.login-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #454f5b;
  cursor: pointer;
}

.login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #04535c;
}

.login-form-meta .forgot-password-page-btn {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b1f33;
  text-decoration: none;
}

.login-form-meta .forgot-password-page-btn:hover {
  color: #04535c;
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 10px;
  background: #04535c;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-submit-btn:hover {
  background: #033f46;
}

.login-auth-error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.875rem;
  line-height: 1.4;
}

.login-auth-error.is-success {
  background: #e6f6ef;
  color: #04535c;
}

.login-auth-session {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-auth-hello {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #0b1f33;
}

.login-auth-app-link {
  text-decoration: none;
}

.login-auth-logout-btn {
  background: transparent;
  color: #04535c;
  border: 1px solid #04535c;
}

.login-auth-logout-btn:hover {
  background: #eef7f5;
  color: #033f46;
}

.login-submit-btn:disabled,
.login-social-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.login-social-btn:disabled:hover {
  border-color: #dfe3e8;
  background: #fff;
}

.login-modal-footer {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: #637381;
}

.login-modal-footer .register-page-btn {
  font-weight: 700;
  color: #0b1f33;
  text-decoration: none;
}

.login-modal-footer .register-page-btn:hover {
  color: #04535c;
}

@media (max-width: 480px) {
  .login-modal-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .login-social-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page-sidebar {
    transition: none;
  }
}
