/* DXB Lookup — login page (Interact-inspired, matches site chrome) */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins/latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins/latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins/latin-700-normal.woff2") format("woff2");
}

:root {
  --px-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --px-text: #484848;
  --px-text-strong: #0b1320;
  --px-muted: #8b93a7;
  --px-label: #6b7280;
  --px-bg: #f7f8fb;
  --px-surface: #ffffff;
  --px-border: #e7ebf1;
  --px-track: #eaeef6;
  --px-shadow-card: 0 1px 2px rgba(16, 30, 60, 0.04), 0 16px 40px rgba(16, 30, 60, 0.08);
  --px-shadow-soft: 0 1px 3px rgba(16, 30, 60, 0.12);
  --px-radius-lg: 22px;
  --px-radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body.px-login {
  margin: 0;
  min-height: 100vh;
  font-family: var(--px-font);
  font-size: 15px;
  color: var(--px-text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(108, 93, 211, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(39, 163, 118, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f6fb 0%, var(--px-bg) 45%, #eef1f7 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.px-login__shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.px-login__panel {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 235, 241, 0.95);
  border-radius: var(--px-radius-lg);
  box-shadow: var(--px-shadow-card);
  padding: 36px 32px 32px;
  animation: px-login-in 0.45s ease both;
}

@keyframes px-login-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.px-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  text-align: center;
}

.px-login__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a1c2e 0%, #3d3566 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(26, 28, 46, 0.22);
  animation: px-login-mark 0.6s ease both;
}

@keyframes px-login-mark {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.px-login__brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--px-text-strong);
  line-height: 1;
}

.px-login__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--px-text-strong);
  letter-spacing: -0.01em;
  text-align: center;
}

.px-login__sub {
  margin: 0 0 24px;
  color: var(--px-muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.45;
}

.px-login__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--px-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.px-login__alert i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 1rem;
}

.px-login__alert--error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #912018;
}

.px-login__alert--success {
  background: #e8f7f0;
  border: 1px solid #abe2c7;
  color: #0f6b45;
}

.px-login__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.px-login__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.px-login__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--px-label);
  letter-spacing: 0.01em;
}

.px-login__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--px-surface);
  border: 1px solid var(--px-border);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 16px 0 42px;
  box-shadow: 0 1px 2px rgba(16, 30, 60, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.px-login__control:focus-within {
  border-color: #c5cde0;
  box-shadow: 0 0 0 3px rgba(108, 93, 211, 0.12);
  background: #fff;
}

.px-login__control i {
  position: absolute;
  left: 16px;
  color: var(--px-muted);
  font-size: 15px;
  pointer-events: none;
}

.px-login__control input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 0;
  color: var(--px-text-strong);
  font-weight: 500;
  font-size: 0.9375rem;
}

.px-login__control input::placeholder {
  color: var(--px-muted);
  font-weight: 400;
}

.px-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.px-login__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--px-label);
  cursor: pointer;
  user-select: none;
}

.px-login__check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--px-text-strong);
  cursor: pointer;
}

.px-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  background: var(--px-text-strong);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 19, 32, 0.2);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.px-login__submit:hover {
  background: #1a2233;
}

.px-login__submit:active {
  transform: translateY(1px);
}

.px-login__submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
  background: #6b7280;
}

.px-login__submit:disabled:hover {
  background: #6b7280;
}

.px-login__foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--px-muted);
}

.px-login__foot a,
.px-login__forgot {
  color: var(--px-text-strong);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.px-login__foot a:hover,
.px-login__forgot:hover {
  text-decoration: underline;
}

.px-login__linkbtn {
  border: 0;
  background: transparent;
  color: var(--px-text-strong);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.px-login__linkbtn:disabled {
  cursor: not-allowed;
  color: var(--px-muted);
  text-decoration: none;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .px-login__panel {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .px-login__title {
    font-size: 1.2rem;
  }
}

/* —— Create account: left brand / right form —— */
body.px-login--register {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.px-login__shell--split {
  height: 100%;
  min-height: 0;
  place-items: stretch center;
  align-content: stretch;
  padding: 16px;
}

.px-login__split {
  width: min(100%, 920px);
  max-height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 235, 241, 0.95);
  border-radius: var(--px-radius-lg);
  box-shadow: var(--px-shadow-card);
  overflow: hidden;
  animation: px-login-in 0.45s ease both;
}

.px-login__intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 32px 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    linear-gradient(160deg, #121826 0%, #1a2233 48%, #243044 100%);
  color: #e8ecf4;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.px-login__intro::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 163, 118, 0.22), transparent 68%);
  pointer-events: none;
}

.px-login__brand--intro {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 4px;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.px-login__brand--intro .px-login__mark {
  width: 42px;
  height: 42px;
  font-size: 19px;
  border-radius: 12px;
}

.px-login__brand--intro .px-login__brand-text {
  color: #fff;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.px-login__intro-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 14ch;
}

.px-login__intro-copy {
  margin: 0;
  max-width: 32ch;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(232, 236, 244, 0.78);
  position: relative;
  z-index: 1;
}

.px-login__intro-note {
  margin: auto 0 0;
  font-size: 0.8125rem;
  color: rgba(232, 236, 244, 0.7);
  position: relative;
  z-index: 1;
}

.px-login__intro-note a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.px-login__panel--form {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 28px 28px 22px;
  animation: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: auto;
}

.px-login__title--form,
.px-login__sub--form {
  text-align: left;
}

.px-login__title--form {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.px-login__sub--form {
  margin-bottom: 14px;
  font-size: 0.8125rem;
}

.px-login__panel--form .px-login__form {
  gap: 10px;
}

.px-login__panel--form .px-login__field {
  gap: 4px;
}

.px-login__panel--form .px-login__control {
  min-height: 40px;
  padding: 0 14px 0 38px;
}

.px-login__panel--form .px-login__control i {
  left: 14px;
  font-size: 14px;
}

.px-login__panel--form .px-login__control input {
  padding: 8px 0;
  font-size: 0.875rem;
}

.px-login__panel--form .px-login__submit {
  margin-top: 4px;
  padding: 11px 16px;
  font-size: 0.875rem;
}

.px-login__panel--form .px-login__foot {
  text-align: left;
  margin-top: 14px;
}

@media (max-width: 860px) {
  body.px-login--register {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
  }

  .px-login__shell--split {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px;
  }

  .px-login__split {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .px-login__intro {
    padding: 22px 20px 18px;
    gap: 10px;
  }

  .px-login__intro-title {
    max-width: none;
    font-size: 1.4rem;
  }

  .px-login__intro-copy {
    max-width: none;
  }

  .px-login__intro-note {
    margin-top: 4px;
  }

  .px-login__panel--form {
    padding: 22px 20px 18px;
    overflow: visible;
  }
}
