/*
 * CityPaws customer authentication
 * Warm editorial palette; a deliberately bounded pet portrait sits above the
 * form so the sign-in shell remains composed even before the auth SDK mounts.
 */
body[data-page="login"] {
  --auth-forest: #092e20;
  --auth-forest-soft: #315244;
  --auth-gold: #bd913d;
  --auth-gold-deep: #88611f;
  --auth-cream: #f5efe3;
  --auth-paper: #fffdf8;
  --auth-muted: #756f63;
  --auth-border: #e6dece;
  --auth-danger: #a33d35;
  min-height: 100%;
  background: var(--auth-cream);
  color: var(--auth-forest);
  font-family: "Heebo", "Noto Sans Hebrew", sans-serif;
}

body[data-page="login"] *,
body[data-page="login"] *::before,
body[data-page="login"] *::after {
  box-sizing: border-box;
}

body[data-page="login"] .auth-suite {
  position: relative;
  display: block;
  width: min(100%, 480px);
  max-width: 480px;
  min-height: 0;
  margin: 24px auto;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(230, 222, 206, .8);
  border-radius: 25px;
  background: var(--auth-cream);
  box-shadow: 0 18px 52px rgba(46, 48, 34, .12), 0 2px 8px rgba(46, 48, 34, .05);
}

body[data-page="login"] .auth-cover {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 254px;
  overflow: hidden;
  background: #d8cfb6;
}

body[data-page="login"] .auth-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

body[data-page="login"] .auth-cover::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 36, 23, .13) 0%, transparent 34%, rgba(255, 253, 248, .06) 65%, rgba(255, 253, 248, .84) 100%);
}

body[data-page="login"] .auth-top-nav {
  position: absolute;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  inset-inline: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body[data-page="login"] .auth-top-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid rgba(230, 222, 206, .72);
  border-radius: 999px;
  background: rgba(255, 253, 248, .88);
  color: var(--auth-forest);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

body[data-page="login"] .auth-languages {
  display: flex;
  gap: 3px;
  direction: ltr;
}

body[data-page="login"] .auth-languages button {
  min-width: 29px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid rgba(230, 222, 206, .76);
  border-radius: 999px;
  background: rgba(255, 253, 248, .88);
  color: var(--auth-forest);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

body[data-page="login"] .auth-brand {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 12px 14px 16px;
  background: #fffdf8;
  justify-content: center;
  grid-template-columns: 33px auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  gap: 2px 7px;
  direction: ltr;
  color: var(--auth-forest);
  text-align: left;
  transform: translateX(-50%);
  text-shadow: 0 1px 8px rgba(255, 253, 248, .9);
}

body[data-page="login"] .auth-brand > svg {
  display: block;
  width: 33px;
  height: 33px;
  grid-column: 1;
  grid-row: 1;
  fill: var(--auth-gold);
  stroke: var(--auth-gold);
  filter: drop-shadow(0 1px 2px rgba(47, 42, 28, .18));
}

body[data-page="login"] .auth-brand > strong {
  grid-column: 2;
  grid-row: 1;
  color: var(--auth-forest);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="login"] .auth-brand > small {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  color: var(--auth-forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: center;
}

body[data-page="login"] .auth-floating-card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: -8px 0 0;
  padding: 23px 25px 27px;
  border: 1px solid rgba(230, 222, 206, .86);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--auth-paper);
  box-shadow: 0 -5px 22px rgba(51, 48, 36, .06);
}

body[data-page="login"] .customer-auth-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--auth-forest);
  font-family: "Heebo", "Noto Sans Hebrew", sans-serif;
}

body[data-page="login"] .customer-auth-host *,
body[data-page="login"] .customer-auth-host *::before,
body[data-page="login"] .customer-auth-host *::after {
  box-sizing: border-box;
  font-family: inherit;
}

body[data-page="login"] #customerSignIn {
  width: 100%;
  min-width: 0;
  color: var(--auth-forest);
}

body[data-page="login"] #customerSignIn[aria-busy="true"] {
  min-height: 245px;
}

body[data-page="login"] #customerSignIn .auth-loading {
  display: grid;
  gap: 13px;
  padding-top: 7px;
}

body[data-page="login"] #customerSignIn .auth-loading > span {
  display: block;
  height: 45px;
  border-radius: 11px;
  background: #f0eadf;
  animation: auth-skeleton 1.2s ease-in-out infinite alternate;
}

body[data-page="login"] #customerSignIn .auth-loading > span:first-child {
  width: 62%;
  height: 22px;
  margin: 0 auto 4px;
}

.customer-auth-host .customer-auth-form {
  width: 100%;
  direction: inherit;
}

.customer-auth-host .auth-heading {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 19px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
}

.customer-auth-host .auth-field:has(input[placeholder]) > label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.customer-auth-host .auth-title {
  margin: 0;
  color: var(--auth-forest);
  font-size: clamp(23px, 4vw, 27px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.customer-auth-host .auth-subtitle {
  max-width: 340px;
  margin: 6px auto 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-auth-host form[data-auth-form] {
  display: grid;
  gap: 12px;
  margin: 0;
}

.customer-auth-host .auth-status:empty {
  display: none;
}

.customer-auth-host .auth-status {
  padding: 10px 12px;
  border: 1px solid rgba(163, 61, 53, .2);
  border-radius: 10px;
  background: #fff4f0;
  color: var(--auth-danger);
  font-size: 13px;
  line-height: 1.45;
}

.customer-auth-host .auth-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.customer-auth-host .auth-field > label {
  color: var(--auth-forest);
  font-size: 13px;
  font-weight: 700;
  text-align: start;
}

.customer-auth-host .auth-field > label span {
  color: var(--auth-gold-deep);
}

.customer-auth-host .auth-input-wrap {
  position: relative;
  display: flex;
  min-width: 0;
}

.customer-auth-host .auth-phone-prefix {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-muted);
  font-size: 12px;
  pointer-events: none;
}
.customer-auth-host .auth-field .auth-input-wrap input[name="phone"] {
  padding-left: 94px;
}
.customer-auth-host .auth-social-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customer-auth-host .auth-field-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #858174;
  pointer-events: none;
  transform: translateY(-50%);
}

.customer-auth-host .auth-field input:not([type="checkbox"]),
.customer-auth-host input[name="code"],
.customer-auth-host .cl-formFieldInput,
.customer-auth-host .cl-otpCodeFieldInput {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  height: 45px;
  padding: 0 13px 0 39px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  outline: none;
  background: #fffefa;
  color: var(--auth-forest);
  font-size: 14px;
  text-align: start;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.customer-auth-host .auth-input-wrap:has(.auth-reveal) input {
  padding-right: 43px;
}

.customer-auth-host .auth-field input::placeholder {
  color: #918a7d;
  opacity: 1;
}

.customer-auth-host .auth-field input:focus,
.customer-auth-host input[name="code"]:focus,
.customer-auth-host .cl-formFieldInput:focus,
.customer-auth-host .cl-otpCodeFieldInput:focus {
  border-color: var(--auth-gold);
  outline: 3px solid rgba(167, 123, 46, .15);
  outline-offset: 1px;
  background: #fff;
}

.customer-auth-host .auth-reveal {
  position: absolute;
  inset-block: 0;
  right: 4px;
  display: grid;
  width: 35px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #746e60;
  cursor: pointer;
}

.customer-auth-host .auth-reveal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.customer-auth-host .auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -2px;
  font-size: 12px;
}

.customer-auth-host .auth-remember label,
.customer-auth-host .auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--auth-forest-soft);
  cursor: pointer;
  line-height: 1.45;
}

.customer-auth-host .auth-remember input,
.customer-auth-host .auth-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 1px 0 0;
  accent-color: var(--auth-gold-deep);
}

.customer-auth-host .auth-remember a,
.customer-auth-host .auth-footer a,
.customer-auth-host .auth-secondary a {
  color: var(--auth-gold-deep);
  font-weight: 700;
  text-decoration: none;
}

.customer-auth-host .auth-remember a:hover,
.customer-auth-host .auth-footer a:hover,
.customer-auth-host .auth-secondary a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-auth-host .auth-consent {
  font-size: 12px;
}

.customer-auth-host .auth-consent-optional {
  color: var(--auth-muted);
}

.customer-auth-host .auth-captcha {
  min-width: 0;
}

.customer-auth-host .auth-primary {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  background: var(--auth-gold);
  color: var(--auth-paper);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.customer-auth-host .auth-primary:hover {
  background: var(--auth-gold-deep);
}

.customer-auth-host .auth-primary:active {
  transform: translateY(1px);
}

.customer-auth-host .auth-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.customer-auth-host .auth-primary > span {
  font-size: 18px;
  line-height: 1;
}

.customer-auth-host .auth-social-row {
  margin-top: 0;
}

.customer-auth-host .auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--auth-muted);
}

.customer-auth-host .auth-divider span {
  height: 1px;
  flex: 1;
  background: var(--auth-border);
}

.customer-auth-host .auth-divider p {
  margin: 0;
  font-size: 11px;
}

.customer-auth-host .auth-social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.customer-auth-host .auth-social-button,
.customer-auth-host .auth-social-btn {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.customer-auth-host .auth-social-button:hover,
.customer-auth-host .auth-social-btn:hover {
  border-color: var(--auth-gold);
  background: rgba(189, 145, 61, .08);
}

.customer-auth-host .auth-social-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
}

.customer-auth-host .auth-social-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.customer-auth-host .auth-social-row .auth-divider {
  display: none;
}

.customer-auth-host .auth-social-button.active-method,
.customer-auth-host .auth-social-btn.active-method,
.customer-auth-host .auth-social-button[aria-pressed="true"],
.customer-auth-host .auth-social-btn[aria-pressed="true"] {
  border-color: var(--auth-gold);
  background: #fdfbf7;
  color: #bd913d;
  box-shadow: 0 2px 8px rgba(189, 145, 61, .15);
}
.customer-auth-host .auth-btn-label { font-size: 11px; font-weight: 600; }

.customer-auth-host .auth-social-button:focus-visible,
.customer-auth-host .auth-social-btn:focus-visible {
  outline: 2px solid var(--auth-gold);
  outline-offset: 2px;
}

.customer-auth-host .auth-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* On the login view, the two sign-in choices lead directly into the form. */
.customer-auth-host .customer-auth-form:has(> form[data-view="login"]) {
  display: flex;
  flex-direction: column;
}

.customer-auth-host .customer-auth-form:has(> form[data-view="login"]) > .auth-heading {
  order: 0;
}

.customer-auth-host .customer-auth-form:has(> form[data-view="login"]) > .auth-social-row {
  order: 1;
  margin: 0 0 12px;
}

.customer-auth-host .customer-auth-form:has(> form[data-view="login"]) > form[data-auth-form] {
  order: 2;
}

.customer-auth-host .customer-auth-form:has(> form[data-view="login"]) > .auth-footer {
  order: 3;
}

.customer-auth-host .auth-footer {
  margin: 16px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.customer-auth-host .auth-footer a {
  margin-inline-start: 4px;
}

.customer-auth-host .auth-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--auth-muted);
  font-size: 13px;
}

.customer-auth-host .auth-secondary-action {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--auth-gold-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.customer-auth-host .auth-admin {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--auth-border);
  color: var(--auth-muted);
  font-size: 12px;
  text-align: center;
}

.customer-auth-host .auth-admin a {
  color: var(--auth-forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-auth-host .auth-native {
  width: 100%;
  min-width: 0;
}

.customer-auth-host .auth-native :where(button, input, a, select) {
  max-width: 100%;
}

.customer-auth-host .auth-lock-mark,
.customer-auth-host .auth-recovery-badge {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  justify-self: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f4ecd9;
  color: var(--auth-gold-deep);
}

.customer-auth-host .auth-lock-mark svg,
.customer-auth-host .auth-recovery-badge svg {
  width: 26px;
  height: 26px;
}

.customer-auth-host .auth-lock-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* Provider-owned verification/MFA screens stay inside the same paper card. */
.customer-auth-host .cl-rootBox,
.customer-auth-host .cl-cardBox,
.customer-auth-host .cl-card,
.customer-auth-host .cl-footer,
.customer-auth-host .cl-main,
.customer-auth-host .cl-main__content {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-auth-host .cl-card,
.customer-auth-host .cl-footer {
  padding: 0;
}

.customer-auth-host .cl-headerTitle {
  color: var(--auth-forest);
  font-size: 25px;
  font-weight: 800;
  text-align: center;
}

.customer-auth-host .cl-headerSubtitle,
.customer-auth-host .cl-formFieldHintText,
.customer-auth-host .cl-footerActionText,
.customer-auth-host .cl-dividerText {
  color: var(--auth-muted);
}

.customer-auth-host .cl-formFieldLabel {
  color: var(--auth-forest);
  font-size: 13px;
  font-weight: 700;
}

.customer-auth-host .cl-formButtonPrimary {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: var(--auth-gold);
  color: var(--auth-paper);
  font-weight: 800;
}

.customer-auth-host .cl-formButtonPrimary:hover {
  background: var(--auth-gold-deep);
}

.customer-auth-host .cl-socialButtonsBlockButton,
.customer-auth-host .cl-alternativeMethodsBlockButton {
  min-height: 48px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fffefa;
  color: var(--auth-forest);
}

.customer-auth-host .cl-formFieldErrorText,
.customer-auth-host .cl-formFieldWarningText {
  color: var(--auth-danger);
}

.customer-auth-host .cl-formFieldSuccessText {
  color: var(--auth-forest);
}

.customer-auth-host .cl-footerActionLink,
.customer-auth-host .cl-formFieldAction,
.customer-auth-host .cl-formResendCodeLink,
.customer-auth-host .cl-backLink,
.customer-auth-host .cl-identityPreviewEditButton {
  color: var(--auth-gold-deep);
  font-weight: 700;
}

.customer-auth-host .cl-logoBox,
.customer-auth-host .cl-logoImage {
  display: none;
}

.customer-auth-host .cl-alert,
.customer-auth-host .cl-identityPreview {
  border-color: var(--auth-border);
  border-radius: 10px;
}

body[data-page="login"] .auth-suite a:focus-visible,
body[data-page="login"] .auth-suite button:focus-visible,
body[data-page="login"] .auth-suite input:focus-visible,
.customer-auth-host .cl-rootBox a:focus-visible,
.customer-auth-host .cl-rootBox button:focus-visible,
.customer-auth-host .cl-rootBox input:focus-visible {
  outline: 3px solid var(--auth-gold);
  outline-offset: 3px;
}

body[data-page="login"] .customer-auth-host .auth-social-button:focus-visible,
body[data-page="login"] .customer-auth-host .auth-social-btn:focus-visible {
  outline: 2px solid var(--auth-gold);
  outline-offset: 2px;
}

/* Only the authenticated customer account surface receives this entrance. */
.account-authenticated {
  animation: account-authenticated-in 150ms ease-out both;
}

body[data-page="login"] .auth-suite > .page-heading,
body[data-page="login"] #app > .push-optin-banner {
  display: none !important;
}

@keyframes account-authenticated-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-skeleton {
  from { opacity: .65; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  body[data-page="login"] .auth-suite {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page="login"] .auth-cover {
    height: 242px;
  }

  body[data-page="login"] .auth-cover img {
    object-position: center 42%;
  }

  body[data-page="login"] .auth-brand {
    bottom: 0;
  }

  body[data-page="login"] .auth-top-nav {
    inset-inline: 12px;
  }

  body[data-page="login"] .auth-floating-card {
    margin-top: -7px;
    padding: 21px 19px calc(25px + env(safe-area-inset-bottom));
    border-radius: 23px 23px 0 0;
  }

  body[data-page="login"] #customerSignIn[aria-busy="true"] {
    min-height: 235px;
  }
}

@media (max-width: 360px) {
  body[data-page="login"] .auth-floating-card {
    padding-inline: 15px;
  }

  .customer-auth-host .auth-remember {
    align-items: flex-start;
    font-size: 11px;
  }

  .customer-auth-host .auth-social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .customer-auth-host .auth-social-button,
  .customer-auth-host .auth-social-btn {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    gap: 6px;
    padding-inline: 5px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-authenticated {
    animation: none;
  }

  body[data-page="login"] #customerSignIn .auth-loading > span {
    animation: none;
  }

  .customer-auth-host .auth-primary,
  .customer-auth-host .auth-field input,
  .customer-auth-host .auth-social-button,
  .customer-auth-host .auth-social-btn {
    transition: none;
  }
}
