/* 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__foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--px-muted);
}

@media (max-width: 480px) {
  .px-login__panel {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .px-login__title {
    font-size: 1.2rem;
  }
}
