:root {
  --login-brand: #aa8345;
  --login-brand-dark: #8f6c36;
  --login-brand-rgb: 170, 131, 69;
  --login-font: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--login-font);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.login-split-layout {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #1a1208;
  color: #0f1923;
  position: relative;
}

.login-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.login-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(20, 12, 4, 0.72) 0%, rgba(89, 65, 29, 0.45) 52%, rgba(10, 6, 2, 0.78) 100%);
}

.login-bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-bg-orbs span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(170, 131, 69, 0.35), rgba(170, 131, 69, 0.04) 70%);
  filter: blur(2px);
  animation: loginOrbFloat 16s ease-in-out infinite;
  will-change: transform;
}

.login-bg-orbs span:nth-child(1) { width: 340px; height: 340px; top: -90px; left: -80px; animation-duration: 21s; }
.login-bg-orbs span:nth-child(2) { width: 220px; height: 220px; top: 55%; left: 8%; animation-duration: 17s; animation-delay: -4s; }
.login-bg-orbs span:nth-child(3) { width: 420px; height: 420px; bottom: -140px; right: -120px; animation-duration: 25s; animation-delay: -8s; }
.login-bg-orbs span:nth-child(4) { width: 160px; height: 160px; top: 12%; right: 18%; animation-duration: 14s; animation-delay: -2s; }
.login-bg-orbs span:nth-child(5) { width: 110px; height: 110px; bottom: 18%; left: 42%; animation-duration: 19s; animation-delay: -10s; opacity: 0.8; }

@keyframes loginOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.06); }
}

@keyframes loginCardRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-split {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-split__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 14px;
}

.login-split__brand-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
}

.login-split__headline {
  font-size: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.login-split__tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.login-split__panels {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  width: min(860px, 100%);
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.45), 0 4px 16px rgba(2, 8, 20, 0.28);
  animation: loginCardRise 0.5s ease;
}

.login-split__main {
  flex: 0 0 auto;
  width: min(360px, 100%);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 12px;
  background: #fff;
}

.login-split__side {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1208;
  overflow: hidden;
}

.login-split__side-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

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

.login-split__main-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

.login-split__main-body { flex: 1 1 auto; }

.login-split-card__logo-wrap {
  text-align: center;
  margin: 0 0 12px;
  width: 100%;
}

.login-split-card__logo-wrap a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.login-split-card__logo {
  display: block;
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  max-height: min(120px, 28vh);
  margin: 0 auto;
  object-fit: contain;
}

.login-split-card__subtitle {
  text-align: center;
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.login-split__main-body .form-group { margin-bottom: 12px; }

.login-split__main-body .form-control {
  width: 100%;
  height: 40px;
  font-size: 14px;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
}

.login-split__main-body .form-control:focus {
  outline: none;
  border-color: var(--login-brand);
  box-shadow: 0 0 0 3px rgba(var(--login-brand-rgb), 0.28);
}

.login-split__main-body .form-control::placeholder { color: #94a3b8; }

.login-split-field-email,
.login-split-field-password {
  text-align: left;
  direction: ltr;
}

.login-split-password-field { position: relative; }

/* Eye on the start/left of the LTR password field */
.login-split-password-field .form-control {
  padding-left: 44px !important;
  padding-right: 12px !important;
}

.login-split-password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 6px;
  right: auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}

.login-split-password-toggle:hover,
.login-split-password-toggle:focus {
  color: var(--login-brand);
  background: rgba(var(--login-brand-rgb), 0.1);
  outline: none;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.login-remember-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}

.login-remember-row__text {
  line-height: 1.2;
  user-select: none;
}

.login-forgot-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--login-brand);
  text-decoration: none;
  margin-inline-start: auto;
  white-space: nowrap;
}

.login-forgot-link:hover { text-decoration: underline; color: var(--login-brand-dark); }

.ats-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 34px;
  height: 18px;
}

.ats-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ats-switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.ats-switch__slider::before {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(15, 25, 35, 0.12);
  transition: inset-inline-start 0.2s;
}

.ats-switch input:checked + .ats-switch__slider { background: var(--login-brand); }

.ats-switch input:checked + .ats-switch__slider::before {
  inset-inline-start: calc(100% - 16px);
}

.login-submit {
  display: block;
  width: 100%;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--login-brand);
  background: var(--login-brand);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.login-submit:hover { background: var(--login-brand-dark); border-color: var(--login-brand-dark); }

.login-demo-wrap {
  margin: 12px 0 0;
  padding: 0;
  text-align: center;
}

.login-demo-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--login-brand-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.9;
}

.login-demo-link:hover {
  color: var(--login-brand);
  opacity: 1;
}

.login-demo-link:disabled {
  opacity: 0.55;
  cursor: wait;
}

.login-alert {
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  text-align: center;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.login-alert--field {
  background: transparent;
  border: 0;
  padding: 4px 0 0;
  margin: 0;
  text-align: start;
  font-size: 12px;
}

.login-app-badges {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
}

.login-app-badges__title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
  color: #000;
}

.login-app-badges__grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-app-badges__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-app-badges__link:hover { opacity: 0.88; }

.login-app-badges__link img {
  display: block;
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 108px;
  object-fit: contain;
}

.login-legal-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 13px;
}

.login-legal-links a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.login-legal-links a:hover { color: #0284c7; text-decoration: underline; }

.login-legal-links__sep { color: #94a3b8; user-select: none; }

.login-lang-pill-wrap {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-lang-pill {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 158px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.login-lang-pill__seg {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}

a.login-lang-pill__seg:hover {
  background: rgba(var(--login-brand-rgb), 0.12);
  color: var(--login-brand-dark);
}

.login-lang-pill__seg + .login-lang-pill__seg {
  box-shadow: inset 1px 0 0 #e2e8f0;
}

.login-lang-pill__seg--active {
  background: var(--login-brand);
  color: #fff !important;
  cursor: default;
}

.ats-brand-footer {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

@media (max-width: 767px) {
  .login-split__side { display: none; }
  .login-split__panels { width: min(360px, 100%); }
  .login-split__main { width: 100%; }
}

@media (max-width: 991px) {
  .login-split { padding: 28px 14px; }
  .login-split__brand { padding: 0 8px 18px; }
  .login-split__main { padding: 24px 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-bg-orbs span,
  .login-split__panels { animation: none !important; }
}


.login-panel[hidden] { display: none !important; }

.login-panel__title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.login-panel__hint {
  margin: 0 0 14px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
}

.login-back-link {
  display: inline-block;
  margin-top: 12px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--login-brand);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.login-back-link:hover { text-decoration: underline; color: var(--login-brand-dark); }

.login-alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.login-forgot-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
