:root {
  --sp-ink: #211d1a;
  --sp-ink-soft: #68615b;
  --sp-canvas: #f1f1ed;
  --sp-surface: #ffffff;
  --sp-line: #deddd7;
  --sp-orange: #f26a21;
  --sp-orange-deep: #d94e12;
  --sp-danger: #b42318;
  --sp-focus: rgba(242, 106, 33, 0.2);
  --sp-radius-shell: 32px;
  --sp-radius-panel: 24px;
  --sp-radius-control: 14px;
  --sp-shadow-shell: 0 28px 80px rgba(47, 39, 32, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

.auth-body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px;
  color: var(--sp-ink);
  background: radial-gradient(circle at 8% 12%, rgba(242, 106, 33, 0.09), transparent 25rem), var(--sp-canvas);
  font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(480px, 1.12fr) minmax(460px, 0.88fr);
  width: min(1560px, 100%);
  min-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(32, 29, 26, 0.07);
  border-radius: var(--sp-radius-shell);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-shell);
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 700px;
  overflow: hidden;
  padding: clamp(30px, 3.5vw, 56px);
  border-radius: calc(var(--sp-radius-shell) - 7px);
  background: radial-gradient(circle at 78% 18%, rgba(255, 243, 223, 0.48), transparent 18rem), linear-gradient(145deg, #ff9b4f 0%, var(--sp-orange) 56%, #df4c13 100%);
  isolation: isolate;
}

.auth-visual::before, .auth-visual::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.auth-visual::before { top: -18rem; right: -13rem; width: 42rem; height: 42rem; }
.auth-visual::after { right: 8%; bottom: -25rem; width: 48rem; height: 48rem; }

.auth-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--sp-ink);
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.auth-brand--visual { align-self: flex-start; }

.auth-brand:hover { color: var(--sp-ink); }
.auth-brand img { width: 46px; height: 46px; object-fit: contain; }

.auth-visual__copy {
  position: absolute;
  z-index: 2;
  top: clamp(108px, 12vh, 145px);
  left: clamp(30px, 3.5vw, 56px);
  width: min(37rem, calc(100% - 4rem));
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: rgba(33, 29, 26, 0.7);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-ink);
  content: "";
}

.auth-kicker--dark { margin-bottom: 13px; color: var(--sp-orange-deep); }
.auth-kicker--dark::before { background: var(--sp-orange); }

.auth-visual__copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.7rem, 4.2vw, 5.1rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.auth-visual__copy p {
  max-width: 570px;
  margin: 24px 0 0;
  color: rgba(33, 29, 26, 0.73);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.6;
}

.auth-art {
  position: absolute;
  right: clamp(-90px, -3vw, -30px);
  bottom: clamp(-190px, -11vw, -85px);
  width: clamp(460px, 47vw, 735px);
  aspect-ratio: 0.78;
}

.auth-art > img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 24px 25px rgba(74, 31, 11, 0.18));
}

.auth-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(33, 29, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(80, 37, 14, 0.13);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.auth-chip::before {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #4baf6f;
  box-shadow: 0 0 0 4px rgba(75, 175, 111, 0.13);
  content: "";
}

.auth-chip--catalog { top: 26%; left: 5%; }
.auth-chip--shipping { top: 47%; right: 16%; }

.auth-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(30px, 3vw, 52px);
  background: linear-gradient(rgba(245, 244, 239, 0.52) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 244, 239, 0.52) 1px, transparent 1px), #fff;
  background-size: 48px 48px;
}

.auth-main__header { display: flex; justify-content: flex-end; min-height: 46px; }
.auth-brand--mobile { display: none; }

.auth-switch {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--sp-ink-soft);
  font-size: 0.87rem;
}

.auth-switch a {
  padding: 10px 16px;
  border: 1px solid var(--sp-line);
  border-radius: 999px;
  color: var(--sp-ink);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.auth-switch a:hover { border-color: #aaa69f; transform: translateY(-1px); }

.auth-main__content {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 38px 0;
}

.auth-card {
  width: min(430px, 100%);
  padding: clamp(30px, 3vw, 48px);
  border: 1px solid rgba(33, 29, 26, 0.085);
  border-radius: var(--sp-radius-panel);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 54px rgba(48, 41, 35, 0.09);
  backdrop-filter: blur(12px);
}

.auth-card__heading { margin-bottom: 30px; }

.auth-card__heading h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.auth-card__heading p { margin: 12px 0 0; color: var(--sp-ink-soft); font-size: 0.98rem; }
.auth-form { display: grid; gap: 19px; }
.auth-alert:empty { display: none; }

.auth-alert {
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 12px;
  color: var(--sp-danger);
  background: #fff2f0;
  font-size: 0.85rem;
}

.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 0.83rem; font-weight: 700; }

.auth-field > input, .auth-password input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-control);
  outline: none;
  color: var(--sp-ink);
  background: #fbfbf9;
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-field > input::placeholder, .auth-password input::placeholder { color: #9b9791; }
.auth-field > input:focus, .auth-password input:focus { border-color: var(--sp-orange); background: #fff; box-shadow: 0 0 0 4px var(--sp-focus); }
.auth-password { position: relative; }
.auth-password input { padding-right: 50px; }

.auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 35px;
  height: 35px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  color: #79736d;
  background: transparent;
  place-items: center;
  transform: translateY(-50%);
}

.auth-password__toggle:hover { color: var(--sp-ink); background: #efeee9; }
.auth-password__toggle:focus-visible, .auth-submit:focus-visible, .auth-switch a:focus-visible, .auth-brand:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 2px; }
.auth-password__toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.auth-field > span { color: var(--sp-danger); font-size: 0.77rem; }

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--sp-ink-soft);
  font-size: 0.84rem;
  cursor: pointer;
}

.auth-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--sp-orange); }
.auth-terms { margin: -2px 0 0; color: var(--sp-ink-soft); font-size: 0.76rem; line-height: 1.55; }

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 17px 0 20px;
  border: 0;
  border-radius: var(--sp-radius-control);
  color: #fff;
  background: var(--sp-ink);
  box-shadow: 0 10px 20px rgba(33, 29, 26, 0.14);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.auth-submit:hover { background: #332c28; box-shadow: 0 13px 25px rgba(33, 29, 26, 0.2); transform: translateY(-1px); }
.auth-submit svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.auth-card__alternate { margin: 27px 0 0; color: var(--sp-ink-soft); font-size: 0.84rem; text-align: center; }
.auth-card__alternate a { color: var(--sp-ink); font-weight: 750; text-underline-offset: 3px; }
.auth-footer { display: flex; justify-content: center; gap: 18px; color: #908b84; font-size: 0.75rem; }
.auth-footer a { color: inherit; }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(420px, 0.92fr) minmax(450px, 1.08fr); }
  .auth-visual__copy h2 { font-size: clamp(2.7rem, 4.6vw, 4.3rem); }
  .auth-chip--shipping { display: none; }
}

@media (max-width: 930px) {
  .auth-body { padding: 12px; }
  .auth-shell { grid-template-columns: 1fr; min-height: calc(100dvh - 24px); border-radius: 25px; }
  .auth-visual { display: none; }
  .auth-main { padding: 28px clamp(20px, 6vw, 52px); }
  .auth-main__header { align-items: center; justify-content: space-between; }
  .auth-brand--mobile { display: inline-flex; }
}

@media (max-width: 600px) {
  .auth-body { padding: 0; background: #fff; }
  .auth-shell { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-main { padding: 22px 20px; background: #fff; }
  .auth-brand img { width: 40px; height: 40px; }
  .auth-switch span { display: none; }
  .auth-switch a { padding: 9px 13px; }
  .auth-main__content { padding: 34px 0; }
  .auth-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
