/* Returning customer login — enabled only with the new-home visual theme. */
.phone:not(.next-ui-theme) .theme-next-only,
.phone.next-ui-theme .theme-current-only {
  display: none !important;
}

.phone.next-ui-theme .login-screen .returning-login-step {
  --login-ink: #131b2a;
  --login-muted: #697386;
  --login-primary: #0b63f6;
  --login-primary-strong: #0755d9;
  --login-line: #dfe5ee;
  --login-soft: #f4f7fb;
  position: relative;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  color: var(--login-ink);
  background: #fff;
}

.phone.next-ui-theme .returning-login-step .login-lockup {
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone.next-ui-theme .returning-login-step .login-lockup .brand-placeholder {
  width: 54px;
  height: 35px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  background: transparent url("assets/logo-biz-mark.svg") center / contain no-repeat !important;
  box-shadow: none;
}

.phone.next-ui-theme .returning-login-step .login-lockup > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.phone.next-ui-theme .returning-login-step .login-lockup strong {
  color: var(--login-ink);
  font-size: 14px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
  line-height: 1.35;
}

.phone.next-ui-theme .returning-login-step .login-lockup small {
  color: var(--login-muted);
  font-size: 10px;
  line-height: 1.45;
}

.phone.next-ui-theme .returning-login-step .login-lockup > i {
  min-height: 34px;
  margin-right: auto;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(11, 99, 246, .18);
  border-radius: 999px;
  color: #255584;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 5px 16px rgba(20, 36, 64, .05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-style: normal;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
  white-space: nowrap;
}

.phone.next-ui-theme .returning-login-step .login-lockup > i svg {
  width: 14px;
  height: 14px;
  color: var(--login-primary);
  stroke-width: 2;
}

.phone.next-ui-theme .returning-login-step .login-welcome-copy {
  width: 100%;
  margin: 46px 0 30px;
}

.phone.next-ui-theme .returning-login-step .login-welcome-copy h1 {
  margin: 0;
  color: var(--login-ink);
  font-size: 30px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
  line-height: 1.27;
  letter-spacing: -.045em;
}

.phone.next-ui-theme .returning-login-step .login-welcome-copy h1 > .theme-next-only {
  display: inline;
  color: inherit;
  font-family: "Vazirmatn Black", Tahoma, sans-serif !important;
  font-size: 30px !important;
  font-weight: normal;
  line-height: 1.27;
  letter-spacing: -.045em;
}

.phone:not(.next-ui-theme) .returning-login-step .login-welcome-copy h1 > .theme-current-only {
  display: inline;
  color: inherit;
  font-family: "Vazirmatn Black", Tahoma, sans-serif !important;
  font-size: 28px !important;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: -.045em;
}

.phone.next-ui-theme .returning-login-step .login-welcome-copy h1 em {
  position: relative;
  color: var(--login-primary);
  font-style: normal;
}

.phone.next-ui-theme .returning-login-step .customer-login-form {
  width: 100%;
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(210, 219, 232, .9);
  border-radius: 23px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(29, 47, 76, .09), 0 2px 6px rgba(29, 47, 76, .035);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.phone.next-ui-theme .returning-login-step .login-form-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone.next-ui-theme .returning-login-step .login-form-heading strong {
  color: var(--login-ink);
  font-size: 14px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
}

.phone.next-ui-theme .returning-login-step .login-form-heading small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #788397;
  font-size: 9.5px;
  white-space: nowrap;
}

.phone.next-ui-theme .returning-login-step .login-form-heading small svg {
  width: 11px;
  height: 11px;
  color: #28a97b;
  stroke-width: 2.2;
}

.phone.next-ui-theme .returning-login-step .field {
  margin: 0 0 12px;
}

.phone.next-ui-theme .returning-login-step .field > span,
.phone.next-ui-theme .returning-login-step .login-password-heading > span {
  margin: 0 2px 6px;
  display: block;
  color: #253044;
  font-size: 12px;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

.phone.next-ui-theme .returning-login-step .field > div {
  min-height: 53px;
  padding: 0 13px;
  gap: 9px;
  border: 1px solid var(--login-line);
  border-radius: 15px;
  color: #36577d;
  background: var(--login-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.phone.next-ui-theme .returning-login-step .field > div:focus-within {
  border-color: rgba(11, 99, 246, .72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 99, 246, .1);
}

.phone.next-ui-theme .returning-login-step .field > div > svg:first-child {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #45668d;
  stroke-width: 1.8;
}

.phone.next-ui-theme .returning-login-step .field input {
  height: 50px;
  color: var(--login-ink);
  font-size: 15px;
  font-family:"Vazirmatn Bold",Tahoma,sans-serif;
  letter-spacing: .025em;
}

.phone.next-ui-theme .returning-login-step .field > small {
  margin: 5px 3px 0;
  display: block;
  color: #8791a2;
  font-size: 10px;
  line-height: 1.5;
}

.phone.next-ui-theme .returning-login-step .login-password-heading {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.phone.next-ui-theme .returning-login-step .login-password-heading button {
  min-height: 32px;
  padding: 0 2px 2px;
  border: 0;
  color: var(--login-primary);
  background: transparent;
  font-size: 11px;
  font-family:"Vazirmatn ExtraBold",Tahoma,sans-serif;
}

.phone.next-ui-theme .returning-login-step .login-password-field {
  margin-bottom: 3px;
}

.phone.next-ui-theme .returning-login-step .login-password-field > div > button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  color: #53647a;
  background: transparent;
}

.phone.next-ui-theme .returning-login-step .login-password-field > div > button:active {
  background: #e8edf4;
}

.phone.next-ui-theme .returning-login-step .login-password-field > div > button svg {
  width: 17px;
  height: 17px;
}

.phone.next-ui-theme .returning-login-step .login-error {
  margin: 9px 0 0;
  padding: 9px 10px;
  border: 1px solid #ffd7d7;
  border-radius: 11px;
  color: #a12f2f;
  background: #fff5f5;
  font-size: 11px;
  line-height: 1.6;
}

.phone.next-ui-theme .returning-login-step .customer-login-form > .primary-button {
  min-height: 55px;
  margin-top: 14px;
  padding: 0 17px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0e72ff 0%, var(--login-primary) 55%, var(--login-primary-strong) 100%);
  box-shadow: 0 12px 24px rgba(11, 99, 246, .24);
  font-size: 14px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.phone.next-ui-theme .returning-login-step .customer-login-form > .primary-button:hover {
  filter: brightness(1.035);
  box-shadow: 0 14px 28px rgba(11, 99, 246, .28);
}

.phone.next-ui-theme .returning-login-step .customer-login-form > .primary-button:active {
  transform: translateY(1px) scale(.995);
  box-shadow: 0 7px 15px rgba(11, 99, 246, .22);
}

.phone.next-ui-theme .returning-login-step .customer-login-form > .primary-button svg {
  width: 17px;
  height: 17px;
  padding: 4px;
  overflow: visible;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.phone.next-ui-theme .returning-login-step .login-secure-note {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #7a8597;
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
}

.phone.next-ui-theme .returning-login-step .login-secure-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #28a97b;
  stroke-width: 2.1;
}

.phone.next-ui-theme .returning-login-step .new-account-entry {
  min-height: 67px;
  margin-top: 13px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(11, 99, 246, .12);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(232, 241, 255, .95), rgba(240, 246, 255, .78));
  box-shadow: none;
}

.phone.next-ui-theme .returning-login-step .new-account-entry > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone.next-ui-theme .returning-login-step .new-account-entry small {
  color: #70819a;
  font-size: 10px;
  line-height: 1.45;
}

.phone.next-ui-theme .returning-login-step .new-account-entry strong {
  color: #1b3152;
  font-size: 12px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
  line-height: 1.55;
}

.phone.next-ui-theme .returning-login-step .new-account-entry button {
  min-height: 44px;
  margin-right: auto;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(11, 99, 246, .14);
  border-radius: 12px;
  color: var(--login-primary);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 4px 12px rgba(30, 66, 119, .06);
  font-size: 11px;
  font-family:"Vazirmatn Black",Tahoma,sans-serif;
  white-space: nowrap;
}

.phone.next-ui-theme .returning-login-step .new-account-entry button svg {
  width: 13px;
  height: 13px;
}

.phone.next-ui-theme .returning-login-step .login-page-footer {
  min-height: 26px;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8b94a4;
  font-size: 9.5px;
  text-align: center;
}

.phone.next-ui-theme .returning-login-step .login-page-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #31b987;
  box-shadow: 0 0 0 3px rgba(49, 185, 135, .11);
}

.phone.next-ui-theme .returning-login-step :is(button, input):focus-visible {
  outline: 3px solid rgba(11, 99, 246, .2);
  outline-offset: 2px;
}

@media (max-height: 760px) {
  .phone.next-ui-theme .login-screen .returning-login-step {
    padding-top: 17px;
    padding-bottom: calc(17px + env(safe-area-inset-bottom, 0px));
  }

  .phone.next-ui-theme .returning-login-step .login-welcome-copy {
    margin: 28px 0 20px;
  }

  .phone.next-ui-theme .returning-login-step .login-welcome-copy h1 {
    font-size: 27px;
  }

  .phone.next-ui-theme .returning-login-step .customer-login-form {
    padding: 14px;
  }

  .phone.next-ui-theme .returning-login-step .field > div,
  .phone.next-ui-theme .returning-login-step .field input {
    min-height: 49px;
    height: 49px;
  }

  .phone.next-ui-theme .returning-login-step .customer-login-form > .primary-button {
    min-height: 51px;
    margin-top: 11px;
  }

  .phone.next-ui-theme .returning-login-step .login-secure-note,
  .phone.next-ui-theme .returning-login-step .login-page-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone.next-ui-theme .returning-login-step *,
  .phone.next-ui-theme .returning-login-step *::before,
  .phone.next-ui-theme .returning-login-step *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
