:root {
  --px-login-bg: #050505;
  --px-login-ink: #0b0d10;
  --px-login-muted: #667085;
  --px-login-soft: #eef1f5;
  --px-login-border: rgba(12, 15, 20, 0.14);
  --px-login-primary: #050505;
  --px-login-primary-strong: #22252a;
  --px-login-ring: rgba(156, 163, 175, 0.3);
  --px-login-success: #13a678;
  --px-login-font: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --px-silver-grad: linear-gradient(135deg, #ffffff 0%, #c9cdd0 34%, #f6f6f1 58%, #858b91 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

.projex-login-body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.76)),
    url("../img/projex-corporate-bg.svg"),
    var(--px-login-bg);
  background-position: center;
  background-size: cover;
  color: var(--px-login-ink);
  font-family: var(--px-login-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.projex-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  height: 100vh;
  padding: clamp(14px, 2.2vw, 28px);
  gap: clamp(14px, 2.2vw, 28px);
}

.projex-login-hero,
.projex-login-panel {
  position: relative;
  min-width: 0;
}

.projex-login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  padding: clamp(24px, 3.2vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.58), rgba(7, 8, 10, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 86px),
    url("../img/projex-corporate-bg.svg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.projex-login-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% 18%;
  height: 52%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.26), transparent 64%);
  filter: blur(26px);
  z-index: -1;
}

.projex-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.72;
  z-index: -1;
}

.projex-orb-one {
  width: 240px;
  height: 240px;
  top: -86px;
  right: -74px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 68%);
}

.projex-orb-two {
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: 18%;
  background: radial-gradient(circle, rgba(170, 176, 184, 0.28), transparent 68%);
}

.projex-brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 1;
}

.projex-brand-logo,
.projex-card-brand img {
  width: clamp(132px, 13vw, 190px);
  max-height: 122px;
  height: auto;
  object-fit: contain;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: var(--px-silver-grad);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.projex-brand-kicker,
.projex-eyebrow {
  margin: 0 0 6px;
  color: rgba(245, 247, 251, 0.9);
  font-size: clamp(0.82rem, 0.78vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projex-brand-lockup h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.projex-brand-lockup span {
  display: block;
  margin-top: 7px;
  color: rgba(245, 247, 251, 0.86);
  font-size: clamp(0.74rem, 0.7vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projex-hero-copy {
  max-width: 660px;
  margin: clamp(26px, 6vh, 58px) 0;
}

.projex-hero-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.projex-hero-copy p:last-child {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(245, 247, 251, 0.88);
  font-size: clamp(1.08rem, 1.05vw, 1.22rem);
  line-height: 1.62;
}

.projex-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.projex-reset-hero .projex-security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projex-security-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.projex-security-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: #f3f4f6;
}

.projex-security-icon svg,
.projex-input-icon svg,
.projex-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.projex-security-card strong,
.projex-security-card span {
  display: block;
}

.projex-security-card strong {
  font-size: clamp(0.95rem, 0.84vw, 1.05rem);
  line-height: 1.25;
}

.projex-security-card div > span {
  margin-top: 4px;
  color: rgba(238, 242, 248, 0.82);
  font-size: clamp(0.84rem, 0.78vw, 0.94rem);
  line-height: 1.5;
}

.projex-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.projex-login-card {
  width: min(100%, 560px);
  padding: clamp(28px, 3.2vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.projex-card-brand {
  display: none;
  margin-bottom: 22px;
}

.projex-card-brand img {
  width: 154px;
  max-height: 108px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.projex-card-heading {
  margin-bottom: 20px;
}

.projex-card-heading p {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(0.88rem, 0.78vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.projex-card-heading h2 {
  margin: 0;
  color: var(--px-login-ink);
  font-size: clamp(2.15rem, 3vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.projex-card-heading span {
  display: block;
  margin-top: 10px;
  color: #4b5565;
  font-size: clamp(1.02rem, 0.95vw, 1.13rem);
  line-height: 1.58;
}

.projex-login-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.92);
  color: #92400e;
  font-size: 1rem;
  font-weight: 700;
}

.projex-login-form {
  display: grid;
  gap: 16px;
}

.projex-field label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 800;
}

.projex-input-wrap {
  position: relative;
}

.projex-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  display: inline-flex;
  color: #808896;
  transform: translateY(-50%);
  pointer-events: none;
}

.projex-input-wrap input[type="text"],
.projex-input-wrap input[type="password"] {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--px-login-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--px-login-ink);
  font: inherit;
  font-size: 1.04rem;
  font-weight: 650;
  padding: 0 52px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.projex-input-wrap input::placeholder {
  color: #7f899a;
  font-weight: 500;
}

.projex-input-wrap input:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 5px var(--px-login-ring), 0 12px 28px rgba(0, 0, 0, 0.08);
}

.projex-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, color 160ms ease;
}

.projex-password-toggle:hover,
.projex-password-toggle:focus-visible {
  background: var(--px-login-soft);
  color: #111;
  outline: none;
}

.projex-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.projex-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #344054;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.projex-remember input {
  width: 18px;
  height: 18px;
  accent-color: #111;
}

.projex-form-row a,
.projex-reset-actions a {
  color: #111;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
}

.projex-form-row a:hover,
.projex-form-row a:focus-visible,
.projex-reset-actions a:hover,
.projex-reset-actions a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.projex-recaptcha-box {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(12, 15, 20, 0.12);
  border-radius: 18px;
  background: #f8fafc;
}

.projex-security-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projex-security-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(12, 15, 20, 0.12);
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.06);
  color: #20242a;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projex-security-strip span:first-child {
  border-color: rgba(19, 166, 120, 0.18);
  background: rgba(19, 166, 120, 0.1);
  color: #08745a;
}

.projex-submit-btn {
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #030303, #27292d 58%, #111);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.projex-submit-btn:hover,
.projex-submit-btn:focus-visible {
  filter: saturate(1.08);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
  outline: none;
}

.projex-submit-btn:active {
  transform: translateY(1px) scale(0.99);
}

.projex-login-footnote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #667085;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.projex-reset-shell {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.82fr);
}

.projex-reset-card {
  max-width: 560px;
}

.projex-reset-actions {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 1180px) {
  .projex-login-shell,
  .projex-reset-shell {
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  }

  .projex-security-grid,
  .projex-reset-hero .projex-security-grid {
    grid-template-columns: 1fr;
  }

  .projex-hero-copy h2 {
    font-size: clamp(2.1rem, 4.8vw, 4rem);
  }
}

@media (min-width: 1500px) and (min-height: 820px) {
  .projex-login-body {
    font-size: 17px;
  }

  .projex-login-card {
    width: min(100%, 590px);
  }

  .projex-reset-card {
    max-width: 590px;
  }
}

@media (max-height: 780px) and (min-width: 921px) {
  .projex-brand-logo {
    width: clamp(112px, 11vw, 150px);
    max-height: 92px;
  }

  .projex-brand-lockup {
    gap: 16px;
  }

  .projex-login-shell {
    padding: 14px;
    gap: 14px;
  }

  .projex-login-hero {
    padding: 24px;
  }

  .projex-hero-copy {
    margin: 20px 0;
  }

  .projex-hero-copy h2 {
    font-size: clamp(2rem, 4.3vw, 3.8rem);
  }

  .projex-hero-copy p:last-child {
    line-height: 1.45;
  }

  .projex-login-card {
    padding: 24px;
  }

  .projex-card-heading {
    margin-bottom: 16px;
  }

  .projex-login-form {
    gap: 12px;
  }

  .projex-input-wrap input[type="text"],
  .projex-input-wrap input[type="password"] {
    min-height: 54px;
  }

  .projex-submit-btn {
    min-height: 56px;
  }

  .projex-login-footnote {
    margin-top: 14px;
    padding-top: 12px;
  }
}

@media (max-width: 920px) {
  .projex-login-body {
    overflow: auto;
  }

  .projex-login-shell,
  .projex-reset-shell {
    display: flex;
    min-height: 100vh;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  .projex-login-hero {
    display: none;
  }

  .projex-login-panel {
    width: 100%;
  }

  .projex-card-brand {
    display: block;
  }
}

@media (max-width: 560px) {
  .projex-login-shell,
  .projex-reset-shell {
    padding: 12px;
    align-items: flex-start;
  }

  .projex-login-card {
    padding: 22px;
    border-radius: 24px;
  }

  .projex-card-brand img {
    width: 132px;
    max-height: 94px;
  }

  .projex-card-heading {
    margin-bottom: 20px;
  }

  .projex-card-heading h2 {
    font-size: 1.8rem;
  }

  .projex-form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .projex-recaptcha-box {
    margin-inline: -2px;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
