.login-page {
  --workshop-edge: #eed8c9;
  --workshop-shadow: 0 18px 55px #77361324;
  color: #2c211a;
  background:
    radial-gradient(ellipse at 12% 16%, #fffaf3, transparent 55%),
    radial-gradient(ellipse at 91% 82%, #ffdcca, transparent 55%),
    #fff0e4;
}

.workshop-login {
  width: min(100%, 1190px);
  margin: auto;
  padding: clamp(17px, 4vw, 46px) clamp(14px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
  align-items: stretch;
}

.workshop-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  overflow: hidden;
  border-radius: 22px 0 0 22px;
  isolation: isolate;
  background: radial-gradient(ellipse at 20% 12%, #ff9a62, var(--accent) 48%, #dc3b0d 77%, #aa2e0e 100%);
  box-shadow: var(--workshop-shadow);
}

.workshop-scene::before, .workshop-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.workshop-scene::before {
  inset: 0;
  background:
    repeating-linear-gradient(0deg, #ffe6d616 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #ffe6d616 0 1px, transparent 1px 4px);
}

.workshop-scene::after {
  inset: clamp(10px, 2vw, 27px);
  border: 1px dashed #fff2dc85;
  border-radius: 15px;
}

.workshop-art {
  position: relative;
  width: min(100%, 640px, max(365px, calc(100svh - 170px)));
  aspect-ratio: 822 / 819;
  container-type: inline-size;
  isolation: isolate;
}

.login-mascot {
  position: absolute;
  bottom: 19.29%;
  transform-origin: center bottom;
}

.mascot-violet {
  left: 15.3%;
  width: 49%;
  height: 60%;
  z-index: 1;
  --face-left: 34%;
  --face-top: 30%;
  --eye-size: 2.3cqw;
  --eye-gap: 6cqw;
  --face-angle: -3deg;
}

.mascot-shirt {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #a7d9e7 0%, #6bb3cb 48%, #3885a6 100%);
  clip-path: polygon(
    24% 7%, 36% 2%, 40% 7%, 45% 10%, 50% 11%, 55% 10%, 60% 7%, 64% 2%, 76% 7%,
    99% 27%, 98% 30%, 86% 45%, 83% 45%, 75% 37%, 76% 97%, 73% 100%,
    27% 100%, 24% 97%, 25% 37%, 17% 45%, 14% 45%, 2% 30%, 1% 27%
  );
}

.mascot-shirt::before {
  content: "";
  position: absolute;
  left: 34%;
  top: -7%;
  width: 32%;
  height: 22%;
  border: .62cqw solid #d5eef5;
  border-radius: 0 0 50% 50%;
}

.mascot-shirt::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(42deg, transparent 0 28%, #e2f4fb90 28% 30%, transparent 30%) 0 24% / 22% 17% no-repeat,
    linear-gradient(-42deg, transparent 0 28%, #e2f4fb90 28% 30%, transparent 30%) 100% 24% / 22% 17% no-repeat,
    repeating-linear-gradient(0deg, #174a6412 0 1px, transparent 1px 3px);
}

.mascot-ink {
  left: 48.7%;
  width: 23.8%;
  height: 45%;
  z-index: 2;
  --face-left: 30%;
  --face-top: 15%;
  --eye-size: 2.7cqw;
  --eye-gap: 3.4cqw;
  --face-angle: 3deg;
}

.mascot-trousers {
  position: absolute;
  inset: 0;
  clip-path: polygon(
    8% 0, 92% 0, 96% 3%, 99% 97%, 97% 100%, 60% 100%, 58% 98%,
    50% 45%, 42% 98%, 40% 100%, 3% 100%, 1% 97%, 4% 3%
  );
  background:
    radial-gradient(circle at 50% 4.7%, #d2d9ee 0 .46cqw, transparent .53cqw),
    linear-gradient(0deg, transparent 5%, #b9c5e581 5% 5.45%, transparent 5.45%),
    repeating-linear-gradient(90deg, #14192a1c 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #434c65, #252b3d 72%);
}

.mascot-trousers::before, .mascot-trousers::after {
  content: "";
  position: absolute;
}

.mascot-trousers::before {
  inset: 0 0 auto;
  height: 9%;
  border-bottom: .23cqw dashed #c8d1e7a6;
  background: #12192942;
}

.mascot-trousers::after {
  top: 25%;
  left: 50%;
  width: 8%;
  height: 13%;
  border: .21cqw dashed #afbbd891;
  border-width: 0 .21cqw .21cqw 0;
  border-radius: 0 0 53% 0;
}

.trouser-pockets::before, .trouser-pockets::after {
  content: "";
  position: absolute;
  top: 12%;
  width: 16%;
  height: 13%;
  border-bottom: .27cqw solid #a3afcd87;
}

.trouser-pockets::before { left: 8%; border-radius: 0 0 90% 10%; transform: rotate(-18deg); }
.trouser-pockets::after { right: 8%; border-radius: 0 0 10% 90%; transform: rotate(18deg); }

.mascot-orange {
  left: 9%;
  width: 38.5%;
  height: 23.5%;
  z-index: 3;
  --face-left: 26%;
  --face-top: 37%;
  --eye-size: 2.4cqw;
  --eye-gap: 7.4cqw;
  --face-angle: 6deg;
}

.mascot-bag-handle {
  position: absolute;
  top: -58%;
  left: 23%;
  width: 53%;
  height: 86%;
  border: 1.72cqw solid #a34d2e;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  box-shadow: inset 0 .49cqw #793719a3, 0 -.27cqw #ffbe86;
}

.mascot-bag {
  position: absolute;
  inset: 0;
  clip-path: polygon(10% 0, 90% 0, 94% 5%, 100% 92%, 99% 96%, 95% 100%, 5% 100%, 1% 96%, 0 92%, 6% 5%);
  background:
    repeating-linear-gradient(0deg, #8b42140f 0 1px, transparent 1px 3px),
    linear-gradient(156deg, #ffd5a2, #ffad70 64%, #f38e53);
}

.mascot-bag::before, .mascot-bag::after {
  content: "";
  position: absolute;
}

.mascot-bag::before {
  inset: 9% 7% 9%;
  border: .25cqw dashed #9b4a2b87;
  border-radius: 4% 4% 7% 7%;
}

.mascot-bag::after {
  top: 0;
  left: 21%;
  right: 22%;
  height: 24%;
  background: linear-gradient(90deg, #a34d2e 0 14%, transparent 14% 86%, #a34d2e 86%);
  border-radius: 0 0 4px 4px;
}

.mascot-gold {
  left: 73.4%;
  width: 18.4%;
  height: 31.8%;
  border-radius: 50% 50% 0 0 / 32% 32% 0 0;
  background: linear-gradient(145deg, #ffe792, #efc35e 90%);
  z-index: 4;
  --face-left: 42%;
  --face-top: 28%;
  --eye-size: 1.45cqw;
}

.mascot-cap {
  position: absolute;
  top: -22%;
  left: -27%;
  width: 131%;
  height: 45%;
  z-index: 1;
  transform: rotate(-8deg);
  transform-origin: 57% 69%;
  transition: transform .23s cubic-bezier(.22,.8,.24,1.12);
}

.mascot-cap i {
  position: absolute;
  top: 5%;
  left: 24%;
  width: 69%;
  height: 73%;
  border-radius: 50% 50% 8% 6% / 80% 80% 9% 8%;
  background: linear-gradient(150deg, #7ebba9, #4b867c);
}

.mascot-cap i::after {
  content: "";
  position: absolute;
  inset: 9% 25% 0 30%;
  border-left: .24cqw dashed #d4eee79e;
  border-radius: 48% 0 0 0;
  transform: rotate(4deg);
}

.mascot-cap::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 2%;
  top: 63%;
  width: 92%;
  height: 24%;
  border-radius: 65% 38% 37% 70%;
  background: #355d61;
  transform: rotate(-5deg);
  box-shadow: 0 .38cqw 0 #253b513d;
}

.mascot-gold[data-look="right"] .mascot-cap { transform: rotate(7deg) scaleX(-1); }

.mascot-face {
  position: absolute;
  left: var(--face-left);
  top: var(--face-top);
  width: max-content;
  transform: translate(var(--face-x, 0px), var(--face-y, 0px)) rotate(var(--face-angle, 0deg));
  transition: transform .22s cubic-bezier(.22,.8,.24,1.12);
}

.mascot-eyes { display: flex; gap: var(--eye-gap, 0); }

.mascot-eyes i {
  display: grid;
  place-items: center;
  width: var(--eye-size);
  height: var(--eye-size);
  border-radius: 50%;
  background: #fff;
}

.mascot-eyes i::after {
  content: "";
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: #1b1d21;
  transform: translate(var(--pupil-x, 0px), var(--pupil-y, 0px));
  transition: transform .13s ease-out;
}

.mascot-orange .mascot-eyes i,
.mascot-gold .mascot-eyes i { background: transparent; }
.mascot-orange .mascot-eyes i::after,
.mascot-gold .mascot-eyes i::after { width: 100%; height: 100%; }

.mascot-mouth {
  position: absolute;
  left: 50%;
  top: calc(var(--eye-size) + 2cqw);
  width: 3.5cqw;
  height: 1.2cqw;
  border-radius: 0 0 65% 65%;
  transform: translateX(-50%);
  background: #1b1d21;
}

.mascot-orange .mascot-mouth { width: 4.7cqw; height: 2.4cqw; }

.mascot-gold .mascot-mouth {
  left: auto;
  right: 50%;
  top: 4cqw;
  width: 9.5cqw;
  height: 1cqw;
  border-radius: 0;
  transform: none;
}

.mascot-gold[data-look="right"] .mascot-mouth { left: 50%; right: auto; }

.mascot-violet .mascot-eyes i { animation: mascot-blink 5.7s 1.9s infinite; }
.mascot-ink .mascot-eyes i { animation: mascot-blink 6.8s .7s infinite; }

@keyframes mascot-blink {
  0%, 92%, 98%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.12); }
}

.workshop-scene[data-state="visible"] .mascot-orange .mascot-eyes i::after {
  height: .85cqw;
  border: .29cqw solid #1b1d21;
  border-bottom: 0;
  border-radius: 1.2cqw 1.2cqw 0 0;
  background: transparent;
}

.workshop-scene[data-state="visible"] .mascot-orange .mascot-mouth,
.workshop-scene[data-state="submitted"] .mascot-orange .mascot-mouth {
  height: .9cqw;
  border: .35cqw solid #1b1d21;
  border-bottom: 0;
  border-radius: 1.6cqw 1.6cqw 0 0;
  background: transparent;
}

.workshop-scene[data-state="visible"] .mascot-gold .mascot-eyes i,
.workshop-scene[data-state="visible"] .mascot-violet .mascot-mouth { opacity: 0; }

.workshop-form-panel {
  display: grid;
  align-items: center;
  padding: clamp(24px, 4.8vw, 58px);
  border-radius: 0 22px 22px 0;
  border: 1px solid var(--workshop-edge);
  border-left: 0;
  background: #fffcf9;
  box-shadow: var(--workshop-shadow);
}

.workshop-form-content { width: min(100%, 345px); margin-inline: auto; }
.workshop-form-logo { display: block; width: 43px; height: 43px; margin: 0 0 20px; }
.workshop-form-content h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.04em; }
.workshop-intro { margin: 10px 0 29px; color: #725e50; font-size: 14px; }
.workshop-form-content .login-fields { gap: 19px; }
.workshop-form-content .login-fields input {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--workshop-edge);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.workshop-form-content input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ff4c0024;
}

.workshop-password-field { position: relative; margin-top: 6px; }
.workshop-form-content .workshop-password-field input { padding-right: 38px; }

.workshop-password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #86583e;
  cursor: pointer;
}

.workshop-password-toggle:hover { background: var(--primary-soft); }
.password-slash { opacity: 0; }
.workshop-password-toggle[aria-pressed="true"] .password-slash { opacity: 1; }
.workshop-submit {
  min-height: 45px;
  margin-top: 7px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff793d, var(--accent));
  color: #281409;
  box-shadow: 0 9px 21px #d4481438;
}
.workshop-submit:hover { background: linear-gradient(120deg, #ff925a, #ff6425); }
.workshop-submit:active { transform: translateY(1px) scale(.98, .94); }
.workshop-feedback { min-height: 22px; margin-top: 11px; color: var(--accent-ink); font-size: 13px; }

@media (max-width: 740px) {
  .workshop-login { grid-template-columns: minmax(0, 1fr); max-width: 515px; }
  .workshop-scene { min-height: clamp(194px, 57vw, 258px); border-radius: 18px 18px 0 0; }
  .workshop-art { position: absolute; width: min(93%, 295px); }
  .workshop-form-panel { padding: 23px clamp(22px, 7vw, 42px) 12px; border-top: 0; border-left: 1px solid var(--workshop-edge); border-radius: 0 0 18px 18px; }
  .workshop-form-logo { width: 34px; height: 34px; margin-bottom: 11px; }
  .workshop-intro { margin: 9px 0 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-login *, .workshop-login *::before, .workshop-login *::after { transition: none !important; animation: none !important; }
  .workshop-submit:active { transform: none; }
}
