:root {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #181818;
  background: #f4f5f5;
  font-synthesis: none;
  --orange: #f36a0a;
  --orange-dark: #d95300;
  --ink: #181818;
  --muted: #747777;
  --line: #dedfdf;
  --soft: #f5f6f6;
  --white: #ffffff;
  --green: #2c963c;
  --radius: 12px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--soft); }
button, select { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(620px, 1fr) 330px; grid-template-rows: 78px 1fr auto; background: var(--white); }
.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; }
.brand { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 26px; border-right: 1px solid var(--line); line-height: 1; }
.brand b { font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif; font-size: 22px; letter-spacing: .02em; }
.brand span { margin-top: 6px; font-size: 12px; letter-spacing: .32em; }
.topbar nav { display: flex; gap: 8px; padding-left: 22px; }
.topbar nav button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 12px 14px; font-size: 14px; cursor: pointer; border-radius: 9px; }
.topbar nav button:hover { background: var(--soft); }
.topbar nav .new { color: var(--orange-dark); font-weight: 650; }
.profile { display: flex; align-items: center; gap: 12px; padding: 0 24px; border-left: 1px solid var(--line); height: 100%; }
.profile span:first-child { display: grid; font-size: 13px; }
.profile small { color: var(--muted); margin-top: 3px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #222; color: white; font-weight: 650; }

.steps { grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); padding: 34px 24px; background: var(--white); }
.steps button { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 10px; text-align: left; align-items: baseline; padding: 12px 0 28px; border: 0; border-left: 1px solid #b8baba; background: transparent; cursor: pointer; color: #9a9c9c; }
.steps button span { font-family: "Avenir Next Condensed", sans-serif; font-size: 30px; line-height: 1; transform: translateX(-2px); background: white; }
.steps button b { font-size: 14px; font-weight: 550; }
.steps button.active { color: var(--orange); border-left-color: var(--orange); }

.workspace { grid-column: 2; grid-row: 2; min-width: 0; padding: 34px 36px 24px; background: var(--white); }
.product-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 28px; scroll-margin-top: 100px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-family: "Avenir Next Condensed", sans-serif; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; letter-spacing: -.02em; }
.product-heading p, .section-title p { color: var(--muted); margin-bottom: 0; font-size: 13px; }
.product-switch, .mode-switch, .segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.product-switch button, .mode-switch button, .segmented button { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 10px 14px; cursor: pointer; font-size: 13px; }
.product-switch button:last-child, .mode-switch button:last-child, .segmented button:last-child { border-right: 0; }
.product-switch button.active, .mode-switch button.active, .segmented button.active { color: var(--orange-dark); background: #fff5ed; box-shadow: inset 0 0 0 1px var(--orange); }

.config-grid { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(310px, 1.05fr); gap: 36px; scroll-margin-top: 100px; }
.product-visual { position: relative; min-height: 420px; overflow: hidden; background: #f1f2f2; border-radius: var(--radius); }
.product-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.product-visual span { position: absolute; left: 16px; bottom: 14px; padding: 7px 9px; background: rgba(255,255,255,.9); border: 1px solid rgba(0,0,0,.08); border-radius: 7px; font-size: 11px; color: var(--muted); }
.controls { display: flex; flex-direction: column; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select { width: 100%; height: 44px; padding: 0 40px 0 13px; border: 1px solid #cbcdcd; border-radius: 9px; background: white; color: var(--ink); cursor: pointer; }
.spec-line { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px 12px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.spec-line span { color: var(--muted); }
.range-note { display: flex; gap: 9px; align-items: center; padding: 12px 14px; background: #eef7ef; color: #246d2f; border-radius: 9px; font-size: 12px; }

.components { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.section-title { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 10px; }
.section-title h2 { font-family: "Avenir Next Condensed", sans-serif; margin-bottom: 4px; font-size: 22px; }
.source-note { color: var(--muted); font-size: 11px; padding-top: 5px; }
.accessory-list { border-top: 1px solid var(--line); }
.accessory-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.accessory-row:not(.selected) { opacity: .62; }
.check-control { width: 28px; height: 28px; border: 1px solid #bfc1c1; border-radius: 7px; background: white; cursor: pointer; }
.selected .check-control { color: white; background: var(--orange); border-color: var(--orange); }
.accessory-copy { display: grid; gap: 2px; }
.accessory-copy strong { font-size: 14px; }
.accessory-copy span, .accessory-copy small { color: var(--muted); font-size: 11px; }
.quantity { display: inline-grid; grid-template-columns: 30px 30px 30px; align-items: center; border: 1px solid #cbcdcd; border-radius: 8px; overflow: hidden; height: 34px; }
.quantity button { height: 100%; border: 0; background: var(--soft); cursor: pointer; font-size: 17px; }
.quantity span { text-align: center; font-size: 13px; }
.partition-components { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partition-components > div { min-height: 110px; display: flex; flex-direction: column; gap: 6px; padding: 16px; background: white; }
.partition-components span, .partition-components small { color: var(--muted); font-size: 11px; }
.partition-components b { font-size: 16px; }

.summary { grid-column: 3; grid-row: 2; align-self: stretch; border-left: 1px solid var(--line); background: #fbfbfb; padding: 32px 28px; position: relative; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary h2 { margin: 0; font-family: "Avenir Next Condensed", sans-serif; font-size: 24px; }
.mode-switch button { padding: 7px 9px; font-size: 11px; }
.price-list { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.price-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.price-list span { color: #3f4141; font-size: 13px; }
.price-list b { font-size: 18px; white-space: nowrap; }
.price-list .accent { color: var(--orange-dark); }
.price-list .retail { display: grid; grid-template-columns: 1fr auto; margin-bottom: 0; }
.price-list small { grid-column: 1 / -1; margin-top: 5px; color: var(--muted); font-size: 10px; }
.availability { padding: 20px 0; }
.availability p { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 13px; }
.availability svg { color: var(--green); }
.composition { border-top: 1px solid var(--line); padding: 18px 0; }
.composition > span { display: block; margin-bottom: 11px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.composition div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-size: 11px; }
.composition div span { color: #595b5b; }
.composition div b { white-space: nowrap; font-weight: 600; }
.primary, .secondary { width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 9px; border-radius: 9px; cursor: pointer; font-weight: 650; font-size: 13px; }
.primary { border: 1px solid var(--orange); color: white; background: var(--orange); box-shadow: 0 8px 18px rgba(243,106,10,.2); }
.primary:hover { background: var(--orange-dark); }
.secondary { margin-top: 10px; border: 1px solid #bfc1c1; background: white; }
.order-meta { margin-top: 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.workflow { grid-column: 2 / -1; grid-row: 3; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; padding: 20px 28px; border-top: 1px solid var(--line); background: white; }
.workflow > strong { font-size: 13px; }
.workflow-items { display: flex; justify-content: space-between; align-items: center; }
.workflow-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workflow-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.workflow-item > span:nth-child(2) { display: grid; gap: 2px; }
.workflow-item b { font-size: 12px; white-space: nowrap; }
.workflow-item small { color: var(--muted); font-size: 10px; }
.workflow-item i { margin-left: 18px; color: #8a8c8c; font-style: normal; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: white; background: #1e2820; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.2); font-size: 13px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 76px minmax(560px, 1fr) 290px; }
  .topbar { grid-template-columns: 190px 1fr auto; }
  .steps { padding: 28px 18px; }
  .steps button { grid-template-columns: 30px; }
  .steps button b { display: none; }
  .workspace { padding: 28px 26px; }
  .config-grid { gap: 24px; }
  .summary { padding: 28px 22px; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .topbar { height: auto; min-height: 68px; grid-template-columns: 180px 1fr; }
  .topbar nav { justify-content: flex-end; padding-right: 14px; }
  .topbar nav button:not(.new) { display: none; }
  .profile { display: none; }
  .steps { position: sticky; top: 68px; z-index: 15; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps button { display: flex; gap: 7px; justify-content: center; padding: 12px 4px; border-left: 0; border-bottom: 2px solid transparent; }
  .steps button.active { border-bottom-color: var(--orange); }
  .steps button span { font-size: 18px; }
  .steps button b { display: block; font-size: 11px; }
  .workspace { padding: 24px 20px; }
  .summary { border-left: 0; border-top: 1px solid var(--line); padding: 26px 20px; }
  .workflow { display: block; padding: 24px 20px; }
  .workflow-items { margin-top: 18px; overflow-x: auto; gap: 22px; justify-content: start; padding-bottom: 8px; }
  .workflow-item i { display: none; }
}

@media (max-width: 640px) {
  .brand { padding: 0 16px; }
  .brand b { font-size: 18px; }
  .topbar nav .new { font-size: 0; padding: 10px; }
  .topbar nav .new svg { width: 23px; height: 23px; }
  .steps button b { display: none; }
  .product-heading { display: grid; }
  .product-switch { width: 100%; }
  .product-switch button { flex: 1; }
  .config-grid { display: block; }
  .product-visual { min-height: 380px; margin-bottom: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .partition-components { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .source-note { display: block; margin-top: 7px; }
  .accessory-row { grid-template-columns: 34px 1fr; }
  .accessory-row .quantity { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Door realism refinement */
.door-stage {
  isolation: isolate;
}

.door-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -58px;
  right: -58px;
  bottom: -45px;
  height: 130px;
  background:
    linear-gradient(90deg, transparent, rgba(35,40,37,.08) 18% 82%, transparent),
    linear-gradient(#dfe2dc 1px, transparent 1px);
  transform: perspective(240px) rotateX(62deg);
  transform-origin: top;
  pointer-events: none;
}

.doorway {
  inset: -18px -18px -9px;
  overflow: visible;
  border: 0;
  border-radius: 2px 2px 0 0;
  background:
    linear-gradient(90deg, #111512 0 4%, transparent 4% 96%, #111512 96%),
    linear-gradient(#111512 0 4%, transparent 4%),
    linear-gradient(125deg, #7e2d08, #ef6b1d 48%, #9a3509);
  box-shadow:
    inset 28px 0 35px rgba(0,0,0,.34),
    inset -28px 0 35px rgba(0,0,0,.27),
    0 40px 75px rgba(29,36,31,.24);
}

.doorway::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 12px solid #252b27;
  border-bottom: 0;
  box-shadow:
    inset 0 0 0 4px #545b56,
    0 0 0 1px rgba(0,0,0,.25),
    0 10px 25px rgba(0,0,0,.18);
  pointer-events: none;
}

.doorway::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 10px;
  border-radius: 1px;
  background: linear-gradient(#555c57, #202521 45%, #111411);
  box-shadow: 0 7px 13px rgba(0,0,0,.28);
}

.doorway-content {
  inset: 16px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 22% 78%, rgba(0,0,0,.18)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255,255,255,.035) 55px 56px);
}

.auth-door {
  inset: 7px 8px 0 7px;
  border: 1px solid #bfc3bd;
  border-left-color: #8f958f;
  border-radius: 1px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.3), transparent 7% 91%, rgba(72,80,75,.11)),
    linear-gradient(105deg, #f7f7f3 0%, #eeefea 58%, #e4e6e0 100%);
  box-shadow:
    10px 26px 52px rgba(24,31,27,.22),
    inset 5px 0 8px rgba(255,255,255,.72),
    inset -14px 0 20px rgba(28,35,31,.08);
  transition-delay: 250ms;
}

.auth-door::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(75,83,78,.13);
  border-radius: 1px;
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,.18),
    0 1px rgba(255,255,255,.6);
  pointer-events: none;
}

.auth-door::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, #aeb3ad, #686f6a);
  transform: rotateY(88deg);
  transform-origin: left;
  pointer-events: none;
}

.door-panel-line {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 31%;
  border: 1px solid rgba(74,82,76,.1);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.15);
  pointer-events: none;
}

.door-hinges {
  position: absolute;
  z-index: 5;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  pointer-events: none;
}

.door-hinges i {
  position: absolute;
  left: 0;
  width: 9px;
  height: 48px;
  border-radius: 2px;
  background: linear-gradient(90deg, #202521, #7a817c 48%, #181c19);
  box-shadow: 1px 0 2px rgba(0,0,0,.35);
}

.door-hinges i:nth-child(1) { top: 72px; }
.door-hinges i:nth-child(2) { top: calc(50% - 24px); }
.door-hinges i:nth-child(3) { bottom: 72px; }

.door-handle {
  right: 25px;
  top: 51%;
  width: 15px;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #151917, #4f5752 48%, #151917);
  box-shadow:
    0 2px 5px rgba(0,0,0,.28),
    inset 1px 0 rgba(255,255,255,.18);
}

.door-handle::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0f1210;
  box-shadow: 0 27px 0 #0f1210;
}

.door-handle span {
  left: auto;
  right: 6px;
  top: 21px;
  width: 54px;
  height: 8px;
  border-radius: 6px 2px 2px 6px;
  background: linear-gradient(#59615c, #151917 64%);
  box-shadow: 0 3px 5px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.18);
  transform-origin: right center;
}

.door-handle span::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -2px;
  width: 13px;
  height: 12px;
  border-radius: 5px 2px 2px 5px;
  background: #202522;
}

.auth-scene.is-opening .door-handle span {
  animation: pressDoorHandle 420ms cubic-bezier(.2,.8,.3,1) both;
}

.auth-scene.is-opening .auth-door {
  transform: rotateY(-101deg) translateZ(1px);
  box-shadow: 34px 28px 62px rgba(13,17,14,.3);
}

.auth-scene.is-opening .door-hinges i {
  box-shadow: 3px 0 5px rgba(0,0,0,.46);
}

.auth-scene.is-opening .door-shadow {
  opacity: .62;
  transform: translateX(-34%) skewX(-20deg) scaleX(1.18);
}

@keyframes pressDoorHandle {
  0% { transform: rotate(0); }
  45%, 72% { transform: rotate(-24deg); }
  100% { transform: rotate(-10deg); }
}

@media (max-width: 980px) {
  .doorway { inset: -13px -13px -7px; }
  .doorway::before { border-width: 9px; }
}
/* Animated authentication door */
body:not(.is-authenticated) {
  overflow: hidden;
}

.app-shell {
  transition: filter 900ms ease, transform 900ms ease;
}

body:not(.is-authenticated) .app-shell {
  filter: blur(15px) saturate(.75);
  transform: scale(.985);
}

.auth-scene {
  --auth-orange: #f36b16;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px) minmax(120px, .55fr);
  align-items: center;
  gap: clamp(36px, 7vw, 120px);
  padding: 48px clamp(28px, 6vw, 110px);
  overflow: hidden;
  color: #151817;
  background:
    linear-gradient(110deg, rgba(255,255,255,.98) 0 44%, rgba(242,243,240,.95) 72%, rgba(231,234,229,.96) 100%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(23,27,25,.035) 93px 94px);
  perspective: 1600px;
  transition: opacity 550ms ease, visibility 550ms ease;
}

.auth-scene::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(20,24,22,.08);
  pointer-events: none;
}

.auth-scene.is-complete {
  opacity: 0;
  visibility: hidden;
}

.auth-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.auth-glow-left {
  left: -260px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(243,107,22,.13), transparent 68%);
}

.auth-glow-right {
  right: -170px;
  top: -250px;
  background: radial-gradient(circle, rgba(36,47,40,.12), transparent 68%);
}

.auth-intro {
  position: relative;
  z-index: 2;
  max-width: 620px;
  animation: authReveal 850ms cubic-bezier(.2,.75,.25,1) both;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--auth-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.auth-eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: currentColor;
}

.auth-intro h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 4.5vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.auth-intro p {
  max-width: 480px;
  margin: 28px 0 0;
  color: #68706b;
  font-size: 17px;
  line-height: 1.6;
}

.door-stage {
  position: relative;
  z-index: 3;
  width: min(390px, 74vw);
  height: min(610px, 74vh);
  min-height: 510px;
  justify-self: center;
  transform-style: preserve-3d;
  animation: doorArrival 900ms 120ms cubic-bezier(.2,.75,.25,1) both;
}

.doorway,
.auth-door {
  position: absolute;
  inset: 0;
  border-radius: 3px 3px 0 0;
}

.doorway {
  overflow: hidden;
  border: 13px solid #202522;
  border-bottom: 0;
  background:
    linear-gradient(145deg, rgba(243,107,22,.93), rgba(191,66,6,.96)),
    #d95d13;
  box-shadow: inset 0 0 70px rgba(0,0,0,.24), 0 38px 70px rgba(29,36,31,.2);
}

.doorway-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px;
  color: white;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(.95);
  transition: opacity 500ms 430ms ease, transform 650ms 420ms cubic-bezier(.2,.75,.25,1);
}

.doorway-content span,
.doorway-content small {
  color: rgba(255,255,255,.75);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.doorway-content strong {
  margin: 18px 0;
  font-size: 38px;
  line-height: .92;
  letter-spacing: -.04em;
}

.auth-door {
  padding: 32px 38px;
  overflow: hidden;
  border: 1px solid #d7d9d5;
  color: #151817;
  background: linear-gradient(105deg, #f8f8f5 0%, #eeefeb 55%, #e5e7e2 100%);
  box-shadow: 0 32px 70px rgba(24,31,27,.2), inset -16px 0 30px rgba(28,35,31,.07);
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 1250ms cubic-bezier(.62,.02,.22,1), box-shadow 900ms ease;
}

.door-grain {
  position: absolute;
  inset: 0;
  opacity: .42;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(37,42,39,.025) 39px 40px);
  pointer-events: none;
}

.auth-brand,
.auth-form,
.door-handle {
  position: relative;
  z-index: 2;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-brand strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
}

.auth-brand span {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .32em;
}

.auth-form {
  display: grid;
  gap: 17px;
  margin-top: clamp(42px, 8vh, 74px);
}

.auth-form-heading span {
  color: #858b87;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-form-heading h2 {
  margin: 5px 0 7px;
  font-size: 35px;
  letter-spacing: -.04em;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: #656c67;
  font-size: 11px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d2d5d0;
  border-radius: 2px;
  outline: none;
  color: #171a18;
  background: rgba(255,255,255,.72);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-form input:focus {
  border-color: var(--auth-orange);
  box-shadow: 0 0 0 3px rgba(243,107,22,.1);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin-top: 5px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  color: white;
  background: var(--auth-orange);
  box-shadow: 0 12px 25px rgba(223,84,8,.22);
  cursor: pointer;
}

.auth-submit:hover .auth-submit-arrow {
  transform: translateX(4px);
}

.auth-submit-arrow {
  font-size: 21px;
  transition: transform 180ms ease;
}

.auth-help {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #7c827e;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.door-handle {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 4px solid #292e2b;
  border-radius: 50%;
  transform: translateY(-50%);
}

.door-handle span {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 27px;
  height: 5px;
  border-radius: 4px;
  background: #292e2b;
  transform-origin: left center;
  transition: transform 230ms ease;
}

.door-shadow {
  position: absolute;
  left: 7%;
  right: -5%;
  bottom: -30px;
  height: 44px;
  border-radius: 50%;
  background: rgba(23,29,25,.25);
  filter: blur(18px);
  transform: scaleX(.82);
  transition: transform 1100ms ease, opacity 800ms ease;
}

.auth-status {
  position: absolute;
  right: 42px;
  bottom: 38px;
  color: #7b817d;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-scene.is-opening .auth-door {
  transform: rotateY(-108deg);
  box-shadow: 25px 30px 65px rgba(24,31,27,.18);
}

.auth-scene.is-opening .door-handle span {
  transform: rotate(28deg);
}

.auth-scene.is-opening .doorway-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.auth-scene.is-opening .door-shadow {
  opacity: .55;
  transform: translateX(-28%) scaleX(1.25);
}

.auth-scene.is-opening .auth-intro {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 450ms ease, transform 450ms ease;
}

@keyframes authReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes doorArrival {
  from { opacity: 0; transform: translateY(35px) rotateY(7deg); }
  to { opacity: 1; transform: translateY(0) rotateY(0); }
}

@media (max-width: 980px) {
  .auth-scene {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px;
  }

  .auth-intro {
    display: none;
  }

  .door-stage {
    width: min(360px, 88vw);
    height: min(590px, 78vh);
  }

  .auth-status {
    right: 50%;
    bottom: 14px;
    transform: translateX(50%);
    white-space: nowrap;
  }
}

@media (max-height: 690px) {
  .door-stage {
    height: 570px;
    min-height: 0;
    transform: scale(.88);
  }

  .auth-form {
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-door,
  .auth-scene,
  .doorway-content,
  .door-shadow {
    transition-duration: 1ms !important;
  }
}
