/* PrintDaily native account header fixes.
 * The user can upload arbitrary portrait/landscape images, so the header avatar
 * must crop inside the designer's fixed 18/25px circle instead of using the
 * source image's intrinsic aspect ratio.
 */
.header-auth-user__avatar {
  display: block;
  overflow: hidden;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  line-height: 0;
}

.header-auth-user__avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: inherit;
}

/* PD_STAGE68_NATIVE_AUTH: native Joomla auth/recovery pages after CB removal. */
.pd-native-auth-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 57.5rem;
  margin: 0 auto 7rem;
  padding: 2rem 0 0;
}
.pd-native-auth-page--narrow {
  max-width: 42rem;
}
.pd-native-auth-page h1 {
  margin: 0 0 2.4rem;
  font-size: 4.6rem;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}
.pd-native-auth-page__intro {
  position: relative;
  margin: 0 0 3rem;
  padding-left: 2rem;
  color: #1f1f1f;
}
.pd-native-auth-page__intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  bottom: .2rem;
  width: .3rem;
  border-radius: 999px;
  background: var(--color-red, #dd0016);
}
.pd-native-auth-page__intro p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.45;
}
.pd-native-auth-page__intro p + p {
  margin-top: .8rem;
}
.pd-native-auth-form {
  width: 100%;
}
.pd-native-auth-form__field,
.pd-native-auth-form .form__field {
  margin-bottom: 2rem;
}
.pd-native-auth-form input[type="text"],
.pd-native-auth-form input[type="email"],
.pd-native-auth-form input[type="password"],
.pd-native-auth-form input[type="number"] {
  width: 100%;
  box-sizing: border-box;
}
.pd-native-auth-form__submit,
.pd-native-auth-form .submit-field {
  display: flex;
  justify-content: center;
  margin-top: 2.8rem;
}
.pd-native-auth-form__submit .button,
.pd-native-auth-form .submit-field .button,
.pd-native-auth-form .submit-field button,
.pd-native-auth-form .submit-field input[type="submit"] {
  min-width: 16.8rem;
}

@media (min-width: 800px) {
  .header-auth-user__avatar {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 799.98px) {
  .pd-native-auth-page {
    margin-bottom: 4rem;
    padding-top: .4rem;
  }
  .pd-native-auth-page h1 {
    margin-bottom: 1.8rem;
    font-size: 3.2rem;
  }
  .pd-native-auth-page__intro {
    margin-bottom: 2.4rem;
    padding-left: 1.4rem;
  }
  .pd-native-auth-page__intro p {
    font-size: 1.3rem;
    line-height: 1.5;
  }
  .pd-native-auth-form__submit,
  .pd-native-auth-form .submit-field {
    justify-content: flex-start;
  }
  .pd-native-auth-form__submit .button,
  .pd-native-auth-form .submit-field .button,
  .pd-native-auth-form .submit-field button,
  .pd-native-auth-form .submit-field input[type="submit"] {
    min-width: 0;
    width: 100%;
  }
}

/* PD_STAGE74_AUTH_FIGMA: recovery & login pages, resilient to missing global theme CSS. */
.pd-native-auth-page { max-width: 540px; width:calc(100% - 32px); margin:45px auto 100px; padding:0; }
.pd-native-auth-page--narrow {max-width:540px;}
.pd-native-auth-page h1 {font-size:clamp(23px,2.5vw,32px); text-align:center; margin:0 0 32px; line-height:1.3; font-weight:700;}
.pd-native-auth-page__intro {max-width:480px; padding:0; margin:0 auto 28px; text-align:center;}
.pd-native-auth-page__intro::before {display:none!important;}
.pd-native-auth-page__intro p {font-size:14px; line-height:1.5; color:#2d3033;}
.pd-native-auth-form {width:100%; max-width:420px; margin:0 auto;}
.pd-native-auth-form__field { display:flex; flex-direction:column; gap:8px; margin:0 0 22px!important; }
.pd-native-auth-form__field label { display:block; position:static!important; order:-1; color:#222; margin:0!important; font-size:13px; font-weight:500; transform:none!important; }
.pd-native-auth-form input[type=text],.pd-native-auth-form input[type=email],.pd-native-auth-form input[type=password],.pd-native-auth-form input[type=number] { background:#f3f6f7; border:1px solid #e8ecef; border-radius:0; font-size:14px; min-height:45px; padding:11px 13px; box-sizing:border-box; width:100%; }
.pd-native-auth-form .submit-field {margin:26px auto 0!important; display:flex; justify-content:center;}
.pd-native-auth-form .submit-field button {min-width:220px; min-height:46px; border:0; border-radius:0; color:white; background:#cc0a19; font-weight:700; cursor:pointer;}
.pd-native-auth-page .pd-native-auth-cta {display:block; max-width:420px; margin:18px auto 0; font-size:13px; text-align:center;}
.pd-registration-result {box-sizing:border-box; width:calc(100% - 32px); max-width:760px; min-height:380px; padding:0 12px; margin:55px auto 90px; text-align:center;}
.pd-registration-result h1 {font-size:clamp(24px,2.6vw,34px); line-height:1.3; margin:0 0 30px; font-weight:700;}
.pd-registration-result p {font-size:15px; line-height:1.6; margin:0 auto 16px; max-width:580px;}
.pd-registration-result a {color:#c50c1b;}
@media(max-width:600px){.pd-native-auth-page {margin:24px auto 55px;} .pd-native-auth-form .submit-field button{width:100%;} .pd-registration-result{min-height:260px;margin:30px auto 60px;}}

/* Stage 75: Never conceal failed CAPTCHA setup on password forms. */
.pd-native-auth-page .pd-captcha-failure{padding:14px;border:1px solid #bd1020;color:#a00012;background:#fff3f4;font-size:14px;line-height:1.5}.pd-native-auth-page button[disabled]{opacity:.5;cursor:not-allowed}


/* PD_STAGE76_RECOVERY_CAPTCHA: keep the widget fully in normal flow on
   recovery/remind pages, separate from label and button. */
.pd-native-auth-page .pd-native-auth-form .pd-native-auth-form__captcha {
  box-sizing:border-box; display:flex; flex-direction:column;
  align-items:center; gap:10px; width:100%; height:auto!important;
  min-height:0!important; margin:22px 0 26px!important;
  padding:0!important; overflow:visible!important;
}
.pd-native-auth-page .pd-native-auth-form .pd-native-auth-form__captcha > label {
  display:block; align-self:flex-start; position:static!important;
  width:auto; margin:0 0 8px!important; order:0!important;
}
.pd-native-auth-page .pd-native-auth-form .pd-native-auth-form__captcha > .smart-captcha,
.pd-native-auth-page .pd-native-auth-form .pd-native-auth-form__captcha .smart-captcha {
  width:min(100%,300px); min-height:104px;
  margin:0 auto!important; padding:0!important;
}
.pd-native-auth-page .pd-native-auth-form .pd-native-auth-form__captcha .captcha-container {
  box-sizing:border-box; display:flex; flex-direction:column; align-items:center;
  width:100%; height:auto!important; min-height:104px;
  margin:0!important; padding:0!important;
}

/* Stage 81: server-controlled password reset request/confirmation pages. */
.pd-password-reset-sent { max-width:760px; }
.pd-password-reset-sent__manual { padding-top:8px; font-size:13px!important; }
.pd-password-reset-sent__manual a { text-decoration:underline; }

/* Stage 85: Figma native sign-in/recovery sizing. Scope to full page, not modal. */
.pd-native-auth-page {max-width:760px;width:calc(100% - 32px);}
.pd-native-auth-page--narrow {max-width:540px;}
.pd-native-auth-page .pd-native-auth-page__intro {max-width:440px;}
.pd-native-auth-page .pd-native-auth-form,.pd-native-auth-page .pd-native-login-form,.pd-native-auth-page .sign-up-buttons {box-sizing:border-box;width:100%!important;max-width:440px!important;margin-left:auto!important;margin-right:auto!important;}
.pd-native-auth-page .pd-native-auth-form .form__field,.pd-native-auth-page .pd-native-login-form .text-field,.pd-native-auth-page .pd-native-login-form .password-field {box-sizing:border-box;width:100%;max-width:100%;}
.pd-native-auth-page .pd-native-auth-form input[type=text],.pd-native-auth-page .pd-native-auth-form input[type=email],.pd-native-auth-page .pd-native-auth-form input[type=password],.pd-native-auth-page .pd-native-auth-form input[type=number],.pd-native-auth-page .pd-native-login-form input[type=email],.pd-native-auth-page .pd-native-login-form input[type=password],.pd-native-auth-page .pd-native-login-form input[type=text] {box-sizing:border-box;width:100%;min-height:48px;}
.pd-native-auth-page .pd-native-auth-form .form__field.submit-field,.pd-native-auth-page .pd-native-login-form .form__field.submit-field {display:flex!important;flex-direction:column;align-items:center!important;justify-content:center!important;width:100%!important;max-width:none!important;margin:26px auto 0!important;}
.pd-native-auth-page .pd-native-auth-form .submit-field button,.pd-native-auth-page .pd-native-login-form .submit-field input[type=submit],.pd-native-auth-page .sign-up-buttons > .sign-up-button {box-sizing:border-box;width:236px!important;min-width:0!important;max-width:100%;min-height:48px;margin-left:auto!important;margin-right:auto!important;align-self:center!important;}
.pd-native-auth-page .pd-native-login-form .sign-in-controls {width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;}
@media(max-width:600px){.pd-native-auth-page .pd-native-auth-form .submit-field button,.pd-native-auth-page .pd-native-login-form .submit-field input[type=submit],.pd-native-auth-page .sign-up-buttons > .sign-up-button{width:100%!important;}}


@media(max-width:359px){.page-wrapper.container:has(.pd-native-auth-page){min-width:0!important;}.page-wrapper:has(.pd-native-auth-page) > main{min-width:0!important;}}
