/* Duxre auth dialog, themed like production: a port of
   components/common/auth/** (Login, ForgotPassword, VerificationCode,
   ResetPassword, CreateAccount + Register) with the property template's
   theme_modal_* / theme_input / theme_button overrides from property.css.
   Colours and fonts come from the :root --color-* / --font-* the theme writes.
   The Duxre wordmark and the LinkedIn mark are images and keep their colours.
   --color-slate is not defined by the theme (docs/components/modals.md); it
   falls back to black like it does in production. */

.duxre-auth {
  position: fixed;
  inset: 0;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: none;
  background: #000000cc;
}
.duxre-auth[hidden],
.duxre-auth [hidden] {
  display: none !important;
}

/* ── card ─────────────────────────────────────────────────────────────── */
.duxre-auth__dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 672px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 34px 33px;
  border-radius: 0;
  background: var(--color-white, #fff);
  box-shadow: 0 4px 24px 9px rgba(0, 0, 0, 0.02);
  color: #000;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}
@media (min-width: 768px) {
  .duxre-auth__dialog {
    padding: 34px 60px;
  }
}

/* Verification code: its own narrow card (VerificationCode.tsx). */
.duxre-auth[data-account-step='otp'] .duxre-auth__dialog {
  max-width: 434px;
  padding: 34px 60px;
  border-radius: 9px;
}
@media (max-width: 767px) {
  .duxre-auth[data-account-step='otp'] .duxre-auth__dialog {
    padding: 34px 24px;
  }
}

/* Create New Account: the wide two-column card, photo on the left
   (theme_create_new_account_container: square, left corners 9px). */
.duxre-auth[data-account-step='register'] .duxre-auth__dialog,
.duxre-auth[data-account-step='register-profile'] .duxre-auth__dialog {
  max-width: 1135px;
  max-height: 100%;
  padding: 0;
  border-radius: 0 0 0 9px;
}
@media (min-width: 768px) {
  .duxre-auth[data-account-step='register'] .duxre-auth__dialog,
  .duxre-auth[data-account-step='register-profile'] .duxre-auth__dialog {
    border-radius: 9px 0 0 9px;
  }
}

.duxre-auth__close {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 1;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: #4b5563;
  line-height: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.duxre-auth__close:hover {
  color: #000;
}
@media (min-width: 768px) {
  .duxre-auth__close {
    top: 26px;
    right: 34px;
  }
}

/* ── header (ModalHeader + theme_modal_header) ───────────────────────── */
.duxre-auth__header {
  margin-bottom: 30px;
}
.duxre-auth__dialog h3 {
  margin: 0;
  color: var(--color-slate, #000);
  font-family: var(--font-secondary);
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
}
.duxre-auth__header p {
  margin: 8px 0 0;
  color: var(--color-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}
@media (min-width: 768px) {
  .duxre-auth__header p {
    margin-top: 16px;
  }
}

/* ── fields (EmailField / PasswordField / Label / getInputBaseStyles) ── */
.duxre-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.duxre-auth__field--plain {
  gap: 0;
}
.duxre-auth__field--mb15 {
  margin-bottom: 6px;
}
.duxre-auth__field--mb2 {
  margin-bottom: 8px;
}
.duxre-auth__field--mb5 {
  margin-bottom: 20px;
}
.duxre-auth__field--mb7 {
  margin-bottom: 28px;
}
.duxre-auth label {
  display: block;
  margin: 8px 0 6px;
  color: var(--color-body);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0.25px;
}
.duxre-auth__field--plain label {
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  .duxre-auth label {
    font-size: 16px;
    line-height: 16px;
  }
}
.duxre-auth label span {
  margin-left: 2px;
  color: var(--color-error);
  font-weight: 600;
}

.duxre-auth input:not([type='hidden']):not([type='checkbox']),
.duxre-auth select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 0;
  outline: none;
  background: var(--color-white, #fff);
  color: var(--color-body);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.25px;
  transition: border-color 0.15s;
}
@media (min-width: 768px) {
  .duxre-auth input:not([type='hidden']):not([type='checkbox']),
  .duxre-auth select {
    height: 40px;
  }
}
.duxre-auth input:not([type='hidden']):not([type='checkbox']):focus,
.duxre-auth select:focus {
  border-color: var(--color-body);
}
.duxre-auth [data-invalid] {
  border-color: var(--color-error) !important;
}
.duxre-auth__error {
  color: var(--color-error);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__error:empty {
  display: none;
}

.duxre-auth__password {
  position: relative;
}
.duxre-auth__password input {
  padding-right: 40px !important;
}
.duxre-auth__eye {
  position: absolute;
  top: 50%;
  right: 12px;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-placeholder);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s;
}
.duxre-auth__eye:hover {
  color: var(--color-body);
}
.duxre-auth__eye svg {
  display: block;
  width: 20px;
  height: 20px;
}
.duxre-auth__eye-on,
.duxre-auth__password:has(input[type='text']) .duxre-auth__eye-off {
  display: none !important;
}
.duxre-auth__password:has(input[type='text']) .duxre-auth__eye-on {
  display: block !important;
}

/* ── text buttons (Button variant="text": uppercase via theme_button) ── */
.duxre-auth__text {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.duxre-auth__text:hover {
  color: var(--color-button-text-hover-text, var(--color-primary));
}
.duxre-auth__text--lead {
  font-size: 16px;
  line-height: 20px;
}
.duxre-auth__text--inline {
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
}
.duxre-auth__text--resend {
  font-size: 16px;
  line-height: 32px;
}

.duxre-auth__forgot {
  margin-bottom: 28px;
  color: var(--color-body);
  font-size: 14px;
  line-height: 20px;
}

.duxre-auth__message {
  margin: -8px 0 20px;
  color: var(--color-error);
  font-size: 16px;
  line-height: 20px;
}
.duxre-auth__message:empty {
  display: none;
}

/* ── buttons (Button primary / outline + theme_button) ─────────────────── */
.duxre-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px 40px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.duxre-auth__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.duxre-auth__btn--primary {
  background: var(--color-primary);
  color: var(--color-white, #fff);
}
.duxre-auth__btn--primary:not(:disabled):hover {
  background: var(--color-primary-light);
  color: var(--color-button-primary-hover-text, #000);
}
.duxre-auth__btn--primary:not(:disabled):focus-visible,
.duxre-auth__btn--primary:not(:disabled):active {
  background: var(--color-primary-dark);
}
.duxre-auth__btn--outline {
  border: 1px solid var(--color-slate, #000);
  background: var(--color-white, #fff);
  color: var(--color-slate, #000);
}
.duxre-auth__btn--outline:not(:disabled):hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.duxre-auth__btn--block {
  display: flex;
  width: 100%;
}
.duxre-auth__btn--mb2 {
  margin-bottom: 8px;
}
.duxre-auth__btn--md {
  font-size: 16px;
}
.duxre-auth__btn--lg {
  padding: 12px 24px;
  line-height: 20px;
}
.duxre-auth__btn--wide {
  padding-right: 72px;
  padding-left: 72px;
  font-size: 16px;
}

.duxre-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.duxre-auth__actions .duxre-auth__btn {
  width: 100%;
}
@media (min-width: 768px) {
  .duxre-auth__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .duxre-auth__actions .duxre-auth__btn {
    width: auto;
  }
}

/* ── divider, LinkedIn, Powered By ─────────────────────────────────────── */
.duxre-auth__divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 36px 0 26px;
}
.duxre-auth__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--color-line);
}
.duxre-auth__divider span {
  position: relative;
  padding: 0 16px;
  background: var(--color-white, #fff);
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__linkedin {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 36px;
}
/* The LinkedIn mark in LinkedIn blue, primary-dark on hover (LinkedInLogin). */
.duxre-auth__linkedin svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: #006bb6;
  transition: fill 0.15s;
}
.duxre-auth__linkedin:hover svg {
  fill: var(--color-primary-dark);
}
.duxre-auth__powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 32px 0 0;
  color: var(--color-placeholder);
  font-size: 16px;
  line-height: 18px;
}
.duxre-auth__powered a,
.duxre-auth__powered img {
  display: block;
  width: auto;
  height: 18px;
}

/* ── verification code ─────────────────────────────────────────────────── */
.duxre-auth__panel--otp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.duxre-auth__otp-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 280px;
  max-width: 100%;
}
.duxre-auth__otp-head h3 {
  text-align: center;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
}
.duxre-auth__otp-head p {
  margin: 0;
  color: var(--color-body);
  text-align: center;
  font-size: 16px;
  line-height: 19px;
}
.duxre-auth__otp-head strong {
  display: inline-block;
  max-width: 100%;
  font-weight: 600;
  vertical-align: bottom;
  word-break: break-all;
}
.duxre-auth__otp-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.duxre-auth__otp {
  display: flex;
  gap: 10px;
}
.duxre-auth .duxre-auth__otp input:not([type='hidden']) {
  width: 44px;
  height: 44px;
  padding: 13px 12px;
  text-align: center;
  letter-spacing: -0.182px;
}
.duxre-auth__otp + .duxre-auth__message,
.duxre-auth__resend .duxre-auth__message {
  margin: 4px 0 0;
  font-size: 14px;
}
.duxre-auth__resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--color-body);
  font-size: 16px;
}
.duxre-auth__resend p {
  margin: 0;
  line-height: 19px;
}
.duxre-auth__resend .duxre-auth__message {
  flex-basis: 100%;
}
.duxre-auth__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.duxre-auth__stack .duxre-auth__btn {
  height: 43px;
  padding: 0 45px;
}
.duxre-auth__panel--otp .duxre-auth__powered {
  margin-top: 0;
  line-height: 20px;
}
.duxre-auth__panel--otp .duxre-auth__powered img {
  height: 20px;
}

/* ── create new account (step 1) ───────────────────────────────────────── */
.duxre-auth__panel--register {
  display: flex;
}
.duxre-auth__aside {
  position: relative;
  display: none;
  flex: 0 0 478px;
  width: 478px;
}
@media (min-width: 1024px) {
  .duxre-auth__aside {
    display: block;
  }
}
.duxre-auth__aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duxre-auth__main {
  box-sizing: border-box;
  max-width: 100%;
  margin: auto;
  padding: 24px 16px;
}
@media (min-width: 768px) {
  .duxre-auth__main {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}
/* theme_login-logo: the header logo at 118×50, stretched like next/image. */
.duxre-auth__logo {
  display: block;
  width: 118px;
  height: 50px;
  margin-bottom: 24px;
}
.duxre-auth__header--mb55 {
  margin-bottom: 30px;
}
.duxre-auth__terms {
  margin: 12px 0 0;
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__terms a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── create new account (step 2, Register) ─────────────────────────────── */
.duxre-auth__panel--profile {
  box-sizing: border-box;
  width: 100%;
  padding: 24px 16px;
}
@media (min-width: 768px) {
  .duxre-auth__panel--profile {
    padding: 34px;
  }
}
.duxre-auth__stepper {
  position: relative;
}
.duxre-auth__stepper-line {
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--color-primary);
}
.duxre-auth__stepper-steps {
  position: relative;
  display: flex;
  justify-content: space-around;
}
.duxre-auth__stepper-steps > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.duxre-auth__stepper-steps i {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-primary);
  border-radius: 9999px;
  background: var(--color-white, #fff);
}
.duxre-auth__stepper-steps .is-active i {
  background: var(--color-primary);
}
.duxre-auth__stepper-steps span {
  margin-top: 12px;
  color: var(--color-label);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}
.duxre-auth__stepper-steps .is-current span {
  color: var(--color-black);
}
.duxre-auth__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 12px 16px;
  margin-top: 32px;
}
.duxre-auth__grid .duxre-auth__field {
  min-width: 0;
}
@media (min-width: 768px) {
  .duxre-auth__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .duxre-auth__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.duxre-auth__panel--profile .duxre-auth__message {
  margin: 16px 0 0;
}
.duxre-auth__complete {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}
