/* ——— Customer login (pet owner portal) ——— */

.cust-auth {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vh, 3rem) 1.25rem
           calc(clamp(2rem, 6vh, 3rem) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.cust-auth *,
.cust-auth *::before,
.cust-auth *::after {
  box-sizing: border-box;
}

/* ——— Soft background ——— */

.cust-auth__scape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cust-auth__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.cust-auth__blob--1 {
  top: -8%;
  right: -6%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, #eaf4ee 0%, rgba(234, 244, 238, 0) 70%);
  filter: blur(0);
}

.cust-auth__blob--2 {
  bottom: -12%;
  left: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 40% 40%, #e6f0ea 0%, rgba(230, 240, 234, 0) 70%);
  filter: blur(0);
}

.cust-auth__hill {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: clamp(110px, 18vh, 170px);
  background: linear-gradient(180deg, #dcebe2 0%, #cfe3d8 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: 0.6;
}

.cust-auth__paw {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0.5;
}

.cust-auth__paw::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  background: #cbe0d4;
}

.cust-auth__paw::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbe0d4;
  box-shadow: 7px -2px 0 #cbe0d4, 14px 0 0 #cbe0d4;
}

.cust-auth__paw--1 { top: 16%; left: 12%; transform: rotate(-15deg); }
.cust-auth__paw--2 { top: 24%; right: 14%; transform: rotate(20deg); opacity: 0.4; }

/* ——— Inner ——— */

.cust-auth__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cust-auth__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.cust-auth__brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.cust-auth__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #17202a;
}

.cust-auth__brand-name em {
  font-style: normal;
  color: #2f7d64;
}

.cust-auth__tag {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2f7d64;
  background: #eaf4ee;
  border-radius: 999px;
}

/* ——— Card ——— */

.cust-login__card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e7e0d5;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(23, 32, 42, 0.12);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.cust-login__heading {
  margin: 0;
  text-align: center;
  font-size: clamp(1.625rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #17202a;
}

.cust-login__subheading {
  margin: 0.625rem auto 0;
  max-width: 26rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #6b7280;
}

/* ——— Reassurance row ——— */

.cust-login__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cust-login__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.cust-login__feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #eaf4ee;
  color: #2f7d64;
}

.cust-login__feature-icon svg {
  width: 22px;
  height: 22px;
}

.cust-login__feature-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
}

/* ——— Form ——— */

.cust-login__alert {
  margin: 1.5rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 0.875rem;
}

.cust-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 1.5rem;
}

.cust-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cust-login__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #17202a;
}

.cust-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cust-login__input-icon {
  position: absolute;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  pointer-events: none;
}

.cust-login__input-icon svg {
  width: 20px;
  height: 20px;
}

.cust-login__input {
  width: 100%;
  height: 60px;
  padding: 0 1rem 0 3rem;
  font: inherit;
  font-size: 1rem;
  color: #17202a;
  background: #fbfaf7;
  border: 1px solid #e7e0d5;
  border-radius: 14px;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.cust-login__input--password {
  padding-right: 3.25rem;
}

.cust-login__input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2f7d64;
  box-shadow: 0 0 0 4px rgba(47, 125, 100, 0.14);
}

.cust-login__input::placeholder {
  color: #9ca3af;
}

.cust-login__toggle {
  position: absolute;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.cust-login__toggle svg {
  width: 20px;
  height: 20px;
}

.cust-login__toggle:focus-visible {
  outline: 2px solid #2f7d64;
  outline-offset: 2px;
  border-radius: 10px;
}

.cust-login__hint {
  font-size: 0.75rem;
  color: #6b7280;
}

.cust-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cust-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}

.cust-login__remember input {
  -webkit-appearance: none;
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

.cust-login__remember input:checked {
  background: #2f7d64;
  border-color: #2f7d64;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}

.cust-login__remember input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 125, 100, 0.2);
}

.cust-login__forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2f7d64;
  text-decoration: none;
}

.cust-login__forgot:active {
  color: #0f5c45;
}

.cust-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  margin-top: 0.5rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  background: #2f7d64;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(47, 125, 100, 0.24);
  transition:
    transform 120ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.cust-login__submit:active {
  transform: scale(0.985);
  background: #0f5c45;
  box-shadow: 0 4px 12px rgba(47, 125, 100, 0.24);
}

.cust-login__submit:focus-visible {
  outline: none;
  box-shadow:
    0 8px 20px rgba(47, 125, 100, 0.24),
    0 0 0 4px rgba(47, 125, 100, 0.25);
}

@media (hover: hover) {
  .cust-login__submit:hover {
    transform: translateY(-2px);
    background: #0f5c45;
    box-shadow: 0 12px 26px rgba(47, 125, 100, 0.3);
  }
}

/* ——— Secondary links ——— */

.cust-login__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cust-login__divider::before,
.cust-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7e0d5;
}

.cust-login__divider span {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.cust-login__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.cust-login__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2f7d64;
  text-decoration: none;
  text-align: center;
}

.cust-login__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cust-login__link:active {
  color: #0f5c45;
}

@media (hover: hover) {
  .cust-login__link:hover {
    color: #0f5c45;
  }
}

/* ——— Reassurance ——— */

.cust-auth__reassure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
}

.cust-auth__reassure svg {
  width: 16px;
  height: 16px;
  color: #2f7d64;
  flex-shrink: 0;
}

/* ——— Mobile ——— */

@media (max-width: 480px) {
  .cust-auth {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cust-login__feature-icon {
    width: 44px;
    height: 44px;
  }

  .cust-login__feature-label {
    font-size: 0.6875rem;
  }
}
