/* Mecc-style login: photographic hero + overlay + full-height auth panel */

@font-face {
  font-family: Lusail;
  font-style: normal;
  font-weight: 300;
  src: url("fonts/Lusail-Light-N4RJ3SDF.woff2") format("woff2");
}

@font-face {
  font-family: Lusail;
  font-style: normal;
  font-weight: 500;
  src: url("fonts/Lusail-Medium-DY3F5OXF.woff2") format("woff2");
}

@font-face {
  font-family: Lusail;
  font-style: normal;
  font-weight: 700;
  src: url("fonts/Lusail-Bold-DBXRH6BS.woff2") format("woff2");
}

html.booking-mecc-login-html {
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.booking-mecc-login-html.booking-mecc-login-html {
  background-color: #1c2430;
}

html.booking-mecc-login-html.light,
html.booking-mecc-login-html.light body {
  color-scheme: light;
}

.booking-mecc-login-body {
  margin: 0;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  color: #181c32;
  background-color: #1c2430;
  display: flex;
  flex-direction: column;
}

/* Arabic / RTL: Lusail (same faces as styles.rtl.css; fall back to system Arabic UI fonts). English / LTR: Inter + Segoe. */
html.booking-mecc-login-html[dir="ltr"] .booking-mecc-login-body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

html.booking-mecc-login-html[dir="rtl"] .booking-mecc-login-body {
  font-family: Lusail, "Segoe UI", "Arabic Typesetting", "Geeza Pro", Traditional Arabic, Tahoma, Arial, sans-serif;
}

.booking-mecc-login-body main {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-mecc-login-root {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100dvh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

.booking-mecc-login-carousel-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #2a3444;
}

.booking-mecc-login-carousel-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.booking-mecc-login-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.booking-mecc-login-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .booking-mecc-login-carousel-slide {
    transition: none;
  }
}

.booking-mecc-login-carousel-controls {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  inset-inline-end: 32px;
  inset-inline-start: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

[dir="rtl"] .booking-mecc-login-carousel-controls {
  inset-inline-start: 32px;
  inset-inline-end: auto;
}

.booking-mecc-login-carousel-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  color: #596266;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.booking-mecc-login-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--tw-primary, #2B7CD3);
}

.booking-mecc-login-carousel-btn:focus-visible {
  outline: 2px solid var(--tw-primary, #2B7CD3);
  outline-offset: 3px;
}

.booking-mecc-login-carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.booking-mecc-login-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  pointer-events: auto;
}

.booking-mecc-login-carousel-dot.is-active {
  background: var(--tw-primary, #2B7CD3);
}

.booking-mecc-login-carousel-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

[dir="rtl"] .booking-mecc-login-carousel-prev svg,
[dir="rtl"] .booking-mecc-login-carousel-next svg {
  transform: scaleX(-1);
}

.booking-mecc-login-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 38%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.18) 0%,
      rgba(250, 247, 239, 0.06) 50%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(24, 28, 50, 0.35) 0%,
      rgba(24, 28, 50, 0.12) 45%,
      rgba(24, 28, 50, 0.42) 100%
    );
}

.booking-mecc-login-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 3vmin, 32px);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: auto;
  pointer-events: none;
}

[dir="rtl"] .booking-mecc-login-stage {
  justify-content: flex-end;
}

@media (min-width: 992px) {
  .booking-mecc-login-stage {
    padding-inline: clamp(28px, 5vmin, 72px);
  }
}

.booking-mecc-login-card {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  margin-inline: 0;
  box-sizing: border-box;
  padding: clamp(40px, 5.5vmin, 56px) clamp(22px, 3.5vmin, 36px);
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow:
    0 12px 40px rgba(24, 28, 50, 0.12),
    0 2px 10px rgba(24, 28, 50, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
}

@media (min-width: 992px) {
  .booking-mecc-login-card {
    max-width: 480px;
  }
}

.booking-mecc-login-brand-slot {
  text-align: center;
  margin-bottom: clamp(22px, 3vmin, 32px);
  padding-bottom: clamp(18px, 2.5vmin, 24px);
  border-bottom: 1px dashed rgba(24, 28, 50, 0.12);
}

.booking-mecc-login-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  max-width: 100%;
  margin-bottom: clamp(48px, 6.5vmin, 76px);
}

.booking-mecc-login-logo-link:focus-visible {
  outline: 2px solid var(--tw-primary, #2B7CD3);
  outline-offset: 4px;
  border-radius: 8px;
}

.booking-mecc-login-logo-link img.ministry-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 380px);
  max-height: clamp(48px, 12vmin, 88px);
}

.booking-mecc-login-brand-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vmin, 1.35rem);
  font-weight: 400;
  color: #181c32;
  line-height: 1.35;
}

[dir="rtl"] .booking-mecc-login-brand-title {
  line-height: 1.28;
}

.booking-mecc-login-heading-block {
  text-align: center;
}

.booking-mecc-login-heading-block--sign-in {
  margin-bottom: clamp(12px, 2vmin, 18px);
}

.booking-mecc-login-heading-block h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vmin, 1.5rem);
  font-weight: 400;
  color: #181c32;
  letter-spacing: -0.02em;
}

[dir="rtl"] .booking-mecc-login-heading-block h2 {
  line-height: 1.28;
}

.booking-mecc-login-heading-block h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vmin, 1.85rem);
  font-weight: 400;
  color: #181c32;
  letter-spacing: -0.02em;
}

[dir="rtl"] .booking-mecc-login-heading-block h1 {
  line-height: 1.28;
}

.booking-mecc-login-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #a1a5b7;
  line-height: 1.55;
}

.booking-mecc-login-nas-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(22px, 3vmin, 28px);
  padding: clamp(16px, 2.5vmin, 20px) clamp(14px, 2vmin, 18px);
  border-radius: 12px;
  background-color: #f5f8fa;
  border: 1px dashed #e1e3ea;
}

.booking-mecc-login-nas-logo {
  display: block;
  width: auto;
  max-width: min(100%, 180px);
  height: auto;
  margin: 0 0 clamp(18px, 2.8vmin, 24px);
  object-fit: contain;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.booking-mecc-login-nas-notice-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3f4254;
  line-height: 1.55;
}

[dir="rtl"] .booking-mecc-login-nas-notice-text {
  line-height: 1.65;
}

.booking-mecc-login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-mecc-login-field {
  margin-bottom: clamp(18px, 2.5vmin, 22px);
}

.booking-mecc-login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #3f4254;
}

.booking-mecc-login-field .input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #e1e3ea;
  background-color: rgba(245, 248, 250, 0.65);
  padding-inline: 14px;
  font-size: 0.9375rem;
  color: #181c32;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.booking-mecc-login-field .input::placeholder {
  color: #a1a5b7;
}

.booking-mecc-login-field .input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--tw-primary, #2B7CD3) 55%, #e1e3ea);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tw-primary, #2B7CD3) 22%, transparent);
  background-color: #fff;
}

.booking-mecc-login-wrap-toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.booking-mecc-login-wrap-toggle .input {
  padding-inline-end: 52px;
}

.booking-mecc-login-password-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: #7e8299;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.booking-mecc-login-password-toggle:hover {
  color: var(--tw-primary, #2B7CD3);
  background: rgba(43, 124, 211, 0.08);
}

.booking-mecc-login-form .login-submit-row {
  margin-top: clamp(8px, 1.5vmin, 14px);
  margin-bottom: clamp(18px, 2.5vmin, 24px);
  width: 100%;
}

.booking-mecc-login-form .login-submit-cluster {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.booking-mecc-login-form .login-submit.btn-primary {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  min-height: 48px;
  font-weight: 400;
  font-size: 1rem;
  border-radius: 8px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.booking-mecc-login-form a.btn.login-lang-switch-btn {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  min-height: 48px;
  padding-inline: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  font-weight: 400;
  font-size: 0.875rem;
  background-color: var(--tw-primary-light, #eaf2fb) !important;
  border: 1px solid var(--tw-primary-clarity, rgba(43, 124, 211, 0.28)) !important;
  color: var(--tw-primary, #2B7CD3) !important;
  box-shadow: none !important;
}

.booking-mecc-login-form a.btn.login-lang-switch-btn:hover {
  background-color: color-mix(in srgb, var(--tw-primary-light, #eaf2fb) 88%, var(--tw-primary, #2B7CD3)) !important;
  border-color: var(--tw-primary, #2B7CD3) !important;
  color: var(--tw-primary-active, #246CAD) !important;
}

.booking-mecc-login-validation {
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 14px;
}

.booking-mecc-login-validation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-mecc-login-validation p {
  margin: 0;
}

.booking-mecc-login-field-validation {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
}

.booking-mecc-login-help {
  margin-top: clamp(14px, 2vmin, 18px);
  padding: 14px 16px;
  border-radius: 12px;
  background: #f5f8fa;
  border: 1px solid #eff2f5;
  color: #5e6278;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.booking-mecc-login-alt-link {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  font-size: 0.8125rem;
}

.booking-mecc-login-alt-link a {
  color: var(--tw-primary, #2B7CD3);
  font-weight: 400;
  text-decoration: none;
}

.booking-mecc-login-alt-link a:hover {
  text-decoration: underline;
}

.booking-mecc-login-local-link {
  color: var(--tw-primary, #2B7CD3);
  font-weight: 400;
  text-decoration: none;
}

.booking-mecc-login-local-link:hover {
  text-decoration: underline;
}

.booking-mecc-login-local-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: var(--tw-primary-light, #eaf2fb);
  border: 1px solid var(--tw-primary-clarity, rgba(43, 124, 211, 0.22));
}

.booking-mecc-login-local-intro__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--tw-primary, #2b7cd3);
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.booking-mecc-login-local-intro__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(71 85 105);
}

.booking-mecc-login-local-sign-in {
  display: inline-block;
  max-width: 100%;
  text-align: center;
}

.booking-mecc-login-local-sign-in summary {
  color: var(--tw-primary, #2B7CD3);
  cursor: pointer;
  font-weight: 400;
  list-style: none;
}

.booking-mecc-login-local-sign-in summary::-webkit-details-marker {
  display: none;
}

.booking-mecc-login-local-sign-in summary:hover {
  text-decoration: underline;
}

.booking-mecc-login-local-sign-in[open] .booking-mecc-login-help {
  margin-top: 12px;
  text-align: start;
}

@media (max-width: 991px) {
  .booking-mecc-login-carousel-controls {
    inset-inline-end: 22px;
    inset-inline-start: auto;
    bottom: 26px;
    gap: 8px;
  }

  [dir="rtl"] .booking-mecc-login-carousel-controls {
    inset-inline-start: 22px;
    inset-inline-end: auto;
  }
}

@media (max-width: 575px) {
  .booking-mecc-login-carousel-controls {
    inset-inline-end: 18px;
    inset-inline-start: auto;
    bottom: 22px;
    gap: 6px;
  }

  [dir="rtl"] .booking-mecc-login-carousel-controls {
    inset-inline-start: 18px;
    inset-inline-end: auto;
  }

  .booking-mecc-login-carousel-btn {
    width: 42px;
    height: 42px;
  }
}
