.customer-auth {
  --auth-ink: #182033;
  --auth-muted: #70788b;
  --auth-line: #e7e9f0;
  position: relative;
  min-height: min(850px, calc(100vh - 170px));
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 12%, rgba(var(--color-primary-rgb), .1), transparent 30%),
    linear-gradient(135deg, #f8f9fd 0%, #fff 48%, rgba(var(--color-primary-rgb), .055) 100%);
}
.customer-auth::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .38;
  background-image: radial-gradient(rgba(var(--color-primary-rgb), .22) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 62%, #000);
}
.customer-auth__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.customer-auth__glow--one { width: 320px; height: 320px; inset: -170px auto auto -90px; background: rgba(var(--color-primary-rgb), .12); }
.customer-auth__glow--two { width: 220px; height: 220px; inset: auto -70px -100px auto; border: 36px solid rgba(var(--color-primary-rgb), .08); }
.customer-auth__container { width: 100%; }
.customer-auth__shell {
  position: relative;
  width: min(100%, 1240px);
  height: 650px;
  min-height: 650px;
  margin: auto;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(24,32,51,.14), 0 3px 12px rgba(24,32,51,.04);
  animation: auth-shell-in .7s cubic-bezier(.2,.75,.25,1) both;
}
.customer-auth__form-panel { position: absolute !important; top: 0; bottom: 0; right: 0; width: 60% !important; height: 100%; min-height: 650px; box-sizing: border-box; transition: opacity .28s ease, transform .5s cubic-bezier(.7,0,.2,1), visibility .28s; }
.customer-auth__form-panel--signup { right: auto; left: 0; opacity: 0; visibility: hidden; transform: translateX(-28px); }
.customer-auth__welcome { position: absolute !important; top: 0; bottom: 0; left: 0; width: 40%; transition: left .58s cubic-bezier(.7,0,.2,1), right .58s cubic-bezier(.7,0,.2,1), transform .58s cubic-bezier(.7,0,.2,1), border-radius .58s ease; }
.customer-auth__welcome-content { transition: opacity .24s ease, transform .38s ease; }
.customer-auth__welcome-content--signup { position: absolute !important; inset: 50% auto auto 50%; width: min(310px, calc(100% - 50px)); opacity: 0; visibility: hidden; transform: translate(-50%, -42%); }
.customer-auth[data-auth-mode="signup"] .customer-auth__form-panel:not(.customer-auth__form-panel--signup) { opacity: 0; visibility: hidden; transform: translateX(-28px); }
.customer-auth[data-auth-mode="signup"] .customer-auth__form-panel--signup { opacity: 1; visibility: visible; transform: none; }
.customer-auth[data-auth-mode="signup"] .customer-auth__welcome { left: auto; right: 0; border-radius: 120px 0 0 120px; }
[dir="rtl"] .customer-auth[data-auth-mode="signup"] .customer-auth__welcome { border-radius: 120px 0 0 120px; }
.customer-auth[data-auth-mode="signup"] .customer-auth__welcome-content--login { opacity: 0; visibility: hidden; transform: translateY(-18px); }
.customer-auth[data-auth-mode="signup"] .customer-auth__welcome-content--signup { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.customer-auth__form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(38px, 4vw, 56px);
  background: #fff;
}
.customer-auth__form-inner {
  flex: 0 1 680px;
  width: min(100%, 680px) !important;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
}
.customer-auth__brand { display: inline-flex; margin-bottom: 30px; }
.customer-auth__brand img { width: auto; max-width: 170px; height: 46px; object-fit: contain; }
.customer-auth__heading { margin-bottom: 28px; }
.customer-auth__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.customer-auth__heading h1,
.customer-auth__heading h2 { margin: 0 0 9px; color: var(--auth-ink); font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.customer-auth__heading p { margin: 0; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }
.customer-auth__guest,
.customer-auth__alert { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 13px 15px; border-radius: 13px; font-size: 13px; }
.customer-auth__guest { color: var(--auth-ink); background: rgba(var(--color-primary-rgb), .07); }
.customer-auth__guest span { flex: 1; }
.customer-auth__alert--danger { color: #a52a35; background: #fff0f1; }
.customer-auth__alert--success { color: #177447; background: #ebfaf2; }
.customer-auth__alert { flex-wrap: wrap; }
.customer-auth__resend { margin: 0 0 0 auto; }
[dir="rtl"] .customer-auth__resend { margin: 0 auto 0 0; }
.customer-auth__resend button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.customer-auth__resend button:hover { background: currentColor; color: #fff0f1; }
.customer-auth__form { width: 100%; display: grid; gap: 19px; }
.customer-auth__form-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 14px; }
.customer-auth__field,
.customer-auth__control { width: 100%; min-width: 0; }
.customer-auth__field label { display: block; margin-bottom: 7px; color: var(--auth-ink); font-size: 12px; font-weight: 750; }
.customer-auth__label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-auth__label-row a { margin-bottom: 7px; color: var(--color-primary); font-size: 11px; font-weight: 650; }
.customer-auth__control { position: relative; }
.customer-auth__control > i {
  position: absolute;
  z-index: 1;
  inset-inline-start: 16px;
  top: 50%;
  color: #9ba1af;
  font-size: 15px;
  transform: translateY(-50%);
  transition: color .2s ease;
}
.customer-auth__control input {
  width: 100%;
  height: 52px;
  padding: 0 46px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  outline: 0;
  color: var(--auth-ink);
  background: #f9fafc;
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.customer-auth__control input::placeholder { color: #a7acb8; }
.customer-auth__control:focus-within > i { color: var(--color-primary); }
.customer-auth__control input:focus { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), .1); }
.customer-auth__password-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #9299a8;
  background: transparent;
  transform: translateY(-50%);
}
.customer-auth__password-toggle:hover { color: var(--color-primary); background: rgba(var(--color-primary-rgb), .08); }
.customer-auth__error { margin: 6px 2px 0; color: #c83d4b; font-size: 11px; }
.customer-auth__submit {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 13px 28px rgba(var(--color-primary-rgb), .25);
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.customer-auth__submit:hover { filter: brightness(.96); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(var(--color-primary-rgb), .3); }
.customer-auth__submit:disabled { cursor: wait; opacity: .7; transform: none; }
.customer-auth__submit i,
.customer-auth__switch i,
.customer-auth__guest > i:last-child { transition: transform .2s ease; }
.customer-auth__submit:hover i,
.customer-auth__switch:hover i,
.customer-auth__guest:hover > i:last-child { transform: translateX(4px); }
[dir="rtl"] .customer-auth__submit:hover i,
[dir="rtl"] .customer-auth__switch:hover i,
[dir="rtl"] .customer-auth__guest:hover > i:last-child { transform: translateX(-4px); }
.customer-auth__divider { display: flex; align-items: center; gap: 12px; color: #9ba1af; font-size: 11px; }
.customer-auth__divider::before, .customer-auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-line); }
.customer-auth__google { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--auth-line); border-radius: 14px; color: var(--auth-ink); font-size: 13px; font-weight: 700; background: #fff; }
.customer-auth__google:hover { color: var(--auth-ink); border-color: #ccd0da; background: #fafbfc; }
.customer-auth__mobile-switch { display: none; margin: 22px 0 0; color: var(--auth-muted); text-align: center; font-size: 13px; }
.customer-auth__mobile-switch button { padding: 0; border: 0; color: var(--color-primary); background: none; font-weight: 750; }

.customer-auth__welcome {
  position: absolute !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 55px 42px;
  color: #fff;
  background: var(--color-primary);
  background: linear-gradient(145deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 65%, #131344));
}
.customer-auth--login .customer-auth__welcome { border-radius: 0 120px 120px 0; }
.customer-auth--signup .customer-auth__welcome { border-radius: 120px 0 0 120px; }
[dir="rtl"] .customer-auth--login .customer-auth__welcome { border-radius: 0 120px 120px 0; }
[dir="rtl"] .customer-auth--signup .customer-auth__welcome { border-radius: 120px 0 0 120px; }
.customer-auth__welcome::after { content: ''; position: absolute; width: 250px; height: 250px; inset: auto -100px -100px auto; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025); }
.customer-auth__pattern { position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(145deg, #000, transparent 65%); }
.customer-auth__welcome-content { position: relative; z-index: 1; max-width: 310px; text-align: center; }
.customer-auth__welcome-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 25px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); font-size: 25px; transform: rotate(-6deg); }
.customer-auth__welcome h2 { margin: 0 0 13px; color: #fff; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.04em; }
.customer-auth__welcome p { margin: 0 auto 28px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.75; }
.customer-auth__switch { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 24px; border: 1px solid rgba(255,255,255,.45); border-radius: 14px; color: #fff; font-size: 13px; font-weight: 750; backdrop-filter: blur(8px); background: rgba(255,255,255,.08); }
.customer-auth__switch:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.16); }
.customer-auth__shell.is-leaving .customer-auth__welcome { animation: auth-panel-sweep .55s cubic-bezier(.7,0,.2,1) both; }
.customer-auth__shell.is-leaving .customer-auth__form-inner { animation: auth-form-out .35s ease both; }

@keyframes auth-shell-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes auth-form-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes auth-panel-sweep { 50% { border-radius: 30px; transform: scaleX(1.08); } 100% { opacity: .92; transform: scaleX(1.55); } }

@media (max-width: 991px) {
  .customer-auth { min-height: auto; padding: 42px 0; }
  .customer-auth__shell { height: auto; min-height: 0; max-width: 650px; }
  .customer-auth__welcome { display: none; }
  .customer-auth__form-panel { position: static !important; width: 100% !important; height: auto; min-height: 0; }
  .customer-auth__form-panel--signup { display: none; }
  .customer-auth[data-auth-mode="signup"] .customer-auth__form-panel:not(.customer-auth__form-panel--signup) { display: none; }
  .customer-auth[data-auth-mode="signup"] .customer-auth__form-panel--signup { display: grid; }
  .customer-auth__form-panel { padding: clamp(30px, 7vw, 55px); }
  .customer-auth__mobile-switch { display: block; }
}
@media (max-width: 575px) {
  .customer-auth { padding: 22px 0; }
  .customer-auth__container { padding-inline: 14px !important; }
  .customer-auth__shell { border-radius: 22px; }
  .customer-auth__form-panel { padding: 28px 20px 32px; }
  .customer-auth__brand { margin-bottom: 22px; }
  .customer-auth__heading { margin-bottom: 24px; }
  .customer-auth__heading h1 { font-size: 32px; }
  .customer-auth__form-grid { grid-template-columns: 1fr; gap: 19px; }
}
@media (max-width: 760px) {
  .customer-auth__form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-auth__shell, .customer-auth__shell * { animation: none !important; transition-duration: .01ms !important; }
}
