:root {
  --login-white: #ffffff;
  --login-white-strong: rgba(255, 255, 255, 0.96);
  --login-white-body: rgba(255, 255, 255, 0.8);
  --login-white-muted: rgba(255, 255, 255, 0.62);
  --login-line: rgba(255, 255, 255, 0.2);
  --login-glass: rgba(255, 255, 255, 0.1);
  --login-glass-hover: rgba(255, 255, 255, 0.15);
  --login-teal-light: #bcebdc;
  --login-teal-dark: #173f39;
  --login-error: #ffb9ad;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--login-white);
  background: #101513;
  font-family: inherit;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  align-items: center;
  gap: 88px;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 52px 7vw;
}

.login-shell::before,
.login-shell::after {
  position: absolute;
  inset: 0;
  content: "";
}

.login-shell::before {
  z-index: -2;
  background-image: url("/assets/login-bead-store-straight.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.login-shell::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 10, 0.22) 0%, rgba(7, 11, 10, 0.16) 42%, rgba(7, 11, 10, 0.62) 70%, rgba(7, 11, 10, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 11, 10, 0.06) 36%, rgba(7, 11, 10, 0.42) 100%);
}

.login-panel {
  grid-column: 2;
  width: 100%;
  justify-self: end;
  padding: 10px 0;
  color: var(--login-white);
  background: transparent;
}

.login-brand {
  display: grid;
  gap: 2px;
  margin-bottom: 27px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--login-line);
}

.login-brand > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.login-brand > div > span {
  color: var(--login-teal-light);
  font-size: 10px;
  font-weight: 820;
}

.login-brand h1 {
  margin: 0;
  overflow: hidden;
  color: var(--login-white-strong);
  font-size: 32px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

.login-brand p {
  margin: 0;
  color: var(--login-white-muted);
  font-size: 12px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.login-form-heading strong {
  color: var(--login-white-strong);
  font-size: 21px;
  font-weight: 820;
}

.login-form-heading span {
  color: var(--login-white-muted);
  font-size: 12px;
}

.login-field {
  display: grid;
  gap: 7px;
  color: var(--login-white-body);
  font-size: 12px;
  font-weight: 700;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 24px;
  margin-top: -2px;
  color: var(--login-white-body);
  font-size: 11px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 720;
  white-space: nowrap;
}

.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--login-teal-light);
}

.login-credential-hint {
  color: var(--login-white-muted);
  text-align: right;
}

.login-input {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: var(--login-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.login-input::before {
  grid-column: 1;
  width: 18px;
  height: 18px;
  content: "";
  color: var(--login-teal-light);
  background: currentColor;
  -webkit-mask: var(--login-input-icon) center / contain no-repeat;
  mask: var(--login-input-icon) center / contain no-repeat;
}

.login-input-user {
  --login-input-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm-8 10a8 8 0 0 1 16 0H4Z'/%3E%3C/svg%3E");
}

.login-input-password {
  --login-input-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 9V7a5 5 0 0 1 10 0v2h1.5A1.5 1.5 0 0 1 20 10.5v10A1.5 1.5 0 0 1 18.5 22h-13A1.5 1.5 0 0 1 4 20.5v-10A1.5 1.5 0 0 1 5.5 9H7Zm2 0h6V7a3 3 0 1 0-6 0v2Zm3 5a2 2 0 0 0-1 3.73V20h2v-2.27A2 2 0 0 0 12 14Z'/%3E%3C/svg%3E");
  grid-template-columns: 27px minmax(0, 1fr) 40px;
  padding-right: 5px;
}

.login-input:focus-within {
  border-color: rgba(188, 235, 220, 0.78);
  background: var(--login-glass-hover);
  box-shadow: 0 0 0 3px rgba(188, 235, 220, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-input input {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--login-white);
  background: transparent;
  font-size: 16px;
}

.login-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-password-toggle {
  grid-column: 3;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
}

.login-password-toggle::before {
  width: 18px;
  height: 18px;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5c5.5 0 9.7 4.8 10 7-.3 2.2-4.5 7-10 7S2.3 14.2 2 12c.3-2.2 4.5-7 10-7Zm0 2c-3.7 0-6.9 2.9-7.8 5 .9 2.1 4.1 5 7.8 5s6.9-2.9 7.8-5c-.9-2.1-4.1-5-7.8-5Zm0 2.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5c5.5 0 9.7 4.8 10 7-.3 2.2-4.5 7-10 7S2.3 14.2 2 12c.3-2.2 4.5-7 10-7Zm0 2c-3.7 0-6.9 2.9-7.8 5 .9 2.1 4.1 5 7.8 5s6.9-2.9 7.8-5c-.9-2.1-4.1-5-7.8-5Zm0 2.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.login-password-toggle:hover,
.login-password-toggle[aria-pressed="true"] {
  color: var(--login-white);
  background: rgba(255, 255, 255, 0.1);
}

.login-submit {
  position: relative;
  min-height: 52px;
  margin-top: 3px;
  padding: 0 48px 0 20px;
  border: 0;
  border-radius: 6px;
  color: var(--login-teal-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  font-weight: 800;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.login-submit::after {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.login-submit:hover {
  background: #fff;
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.26);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.62;
  box-shadow: none;
}

.login-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--login-error);
  font-size: 12px;
  font-weight: 680;
}

.login-panel-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--login-line);
  color: var(--login-white-muted);
  font-size: 10px;
}

.login-panel-foot .login-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78d6b8;
  box-shadow: 0 0 0 4px rgba(120, 214, 184, 0.12);
}

.login-password-toggle:focus-visible,
.login-remember input:focus-visible,
.login-submit:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  }

  .login-shell::before {
    background-image: url("/assets/login-bead-store-straight.jpg");
    background-position: center center;
  }

  .login-shell::after {
    background:
      linear-gradient(180deg, rgba(7, 11, 10, 0.04) 0%, rgba(7, 11, 10, 0.12) 22%, rgba(7, 11, 10, 0.64) 42%, rgba(7, 11, 10, 0.76) 74%, rgba(7, 11, 10, 0.68) 100%);
  }

  .login-panel {
    grid-column: 1;
    max-width: none;
    padding: 0;
  }

  .login-brand {
    display: none;
  }

  .login-form-heading {
    margin-bottom: 8px;
    text-align: center;
  }

  .login-form-heading strong {
    font-size: 24px;
  }

  .login-form {
    gap: 14px;
  }

  .login-options {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .login-credential-hint {
    flex: 1 1 160px;
  }
}

@media (max-width: 350px) {
  .login-shell {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (min-width: 761px) and (max-height: 680px) {
  .login-shell {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .login-brand {
    margin-bottom: 19px;
    padding-bottom: 16px;
  }

  .login-form {
    gap: 13px;
  }
}

/* Shared sales-first identity; login fields and handlers retain their existing IDs. */
:root { color-scheme: light; --login-white: #182341; --login-white-strong: #182341; --login-white-body: #514660; --login-white-muted: #84798d; --login-line: #e8e1f1; --login-teal-light: #6c4ef6; --login-teal-dark: #fff; --login-error: #b64036; }
body { background: #fbf9f4; }
.login-shell { grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 7vw; max-width: 1400px; margin: 0 auto; padding: 48px 6vw; }
.login-shell::before { background: radial-gradient(circle at 10% 18%, #e9e1ff 0, transparent 33%), radial-gradient(circle at 88% 90%, #fff0d2 0, transparent 30%); }
.login-shell::after { display: none; }
.login-story { min-width: 0; color: #182341; }
.login-story-brand { display: inline-flex; align-items: center; gap: 9px; color: #182341; font-size: 17px; font-weight: 850; text-decoration: none; }
.login-story-brand > span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #6c4ef6; color: #fff; font-size: 25px; }
.login-story-eyebrow { display: block; font-size: 10px; letter-spacing: .1em; color: #715ca0; font-weight: 800; margin: 45px 0 16px; }
.login-story h2 { margin: 0; font-size: clamp(32px, 3.3vw, 48px); font-weight: 850; line-height: 1.4; letter-spacing: -.025em; }
.login-story > p { font-size: 13px; color: #7b6b8b; line-height: 1.9; margin: 17px 0 22px; }
.login-story-art { display: grid; grid-template-columns: 1.35fr .85fr .85fr; grid-template-rows: 78px 78px; gap: 10px; max-width: 540px; padding: 8px; }
.login-story-art > div { display: flex; flex-direction: column; justify-content: center; padding: 15px; border-radius: 15px; font-size: 21px; font-weight: 850; }
.login-art-purple { grid-row: span 2; background: #6c4ef6; color: #fff; transform: rotate(-5deg); font-size: 44px !important; }
.login-art-purple span { font-size: 10px; line-height: 1.6; font-weight: 600; margin-top: 11px; }
.login-art-coral { grid-column: span 2; background: #ff715a; color: #422240; transform: rotate(2deg); }
.login-art-mint { background: #4ad3ad; color: #204946; transform: rotate(3deg); }
.login-art-gold { background: #ffc857; color: #594022; transform: rotate(-3deg); }
.login-story-topics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.login-story-topics span { padding: 7px 11px; color: #776288; background: #fff; border: 1px solid #e8e0ed; border-radius: 999px; font-size: 11px; }
.login-panel { padding: 32px; background: #fff; border: 1px solid #e8e1f1; border-radius: 20px; box-shadow: 0 18px 60px #38255c0c; }
.login-brand { padding-bottom: 21px; margin-bottom: 21px; }
.login-brand h1 { font-size: 23px; text-shadow: none; white-space: normal; line-height: 1.45; }
.login-brand p { line-height: 1.8; }
.login-brand > div > span { font-size: 9px; margin-bottom: 5px; }
.login-form-heading strong { font-size: 18px; }
.login-input { background: #fbf9ff; border-color: #ded6eb; border-radius: 9px; backdrop-filter: none; box-shadow: none; }
.login-input:focus-within { border-color: #9c85fb; background: #fcfaff; box-shadow: 0 0 0 3px #6c4ef60f; }
.login-input input::placeholder { color: #aba1b5; }
.login-password-toggle { color: #9989ad; }
.login-password-toggle:hover, .login-password-toggle[aria-pressed="true"] { background: #eee9ff; color: #6c4ef6; }
.login-submit { background: #6c4ef6; color: #fff; border-radius: 9px; box-shadow: 0 8px 24px #6c4ef620; }
.login-submit:hover { background: #5c3ce3; box-shadow: 0 9px 24px #6c4ef630; }
.login-panel-foot { padding-top: 17px; margin-top: 7px; }
.login-panel-foot .login-footer-dot { background: #4ad3ad; box-shadow: 0 0 0 4px #4ad3ad18; }
.login-password-toggle:focus-visible, .login-remember input:focus-visible, .login-submit:focus-visible { outline-color: #6c4ef6; }
@media (max-width: 1120px) { .login-shell { gap: 35px; padding: 35px 4vw; } .login-panel { padding: 26px; } .login-story h2 { font-size: 35px; } .login-story-art > div { padding: 12px; } }
@media (max-width: 760px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 24px; padding: calc(26px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); }
  .login-story { max-width: 430px; width: 100%; justify-self: center; }
  .login-story h2 { font-size: 27px; margin-top: 19px; }
  .login-story-eyebrow, .login-story > p, .login-story-art, .login-story-topics { display: none; }
  .login-panel { grid-column: 1; justify-self: center; max-width: 430px; padding: 24px; }
  .login-brand { display: none; }
  .login-form-heading { text-align: left; }
  .login-form-heading strong { font-size: 22px; }
  .login-form { gap: 16px; }
}
@media (max-width: 350px) { .login-shell { padding-right: 14px; padding-left: 14px; } .login-panel { padding: 20px; } .login-story h2 { font-size: 24px; } }

/* Rounded, light-catching depth; login dimensions and form handlers stay unchanged. */
.login-shell::before {
  background:
    radial-gradient(ellipse at 8% 16%, #e3d8ffb3, transparent 43%),
    radial-gradient(ellipse at 86% 88%, #ffedc8b3, transparent 34%),
    radial-gradient(ellipse at 54% 100%, #e2f6ee80, transparent 36%);
}
.login-story-brand > span {
  background: linear-gradient(150deg, #a58cff, #6c4ef6 55%, #5639c4);
  box-shadow: inset 0 2px 1px #ffffff75, inset 0 -2px 1px #3c258438, 0 3px 0 #472f94, 0 8px 14px #6545b322;
  text-shadow: 0 2px 0 #3f2b8d40;
}
.login-story-art > div {
  box-shadow: inset 0 2px 2px #ffffff80, inset 0 -3px 2px #00000013, 0 7px 0 var(--login-art-edge), 0 18px 22px #49326818;
  text-shadow: 0 1px 0 #ffffff35;
}
.login-art-purple { --login-art-edge: #4f36ba; background: linear-gradient(145deg, #9c7bff, #6c4ef6 55%, #5e41d9); text-shadow: 0 3px 0 #43258c55 !important; }
.login-art-coral { --login-art-edge: #c55149; background: linear-gradient(145deg, #ffac91, #ff715a 60%, #ee6256); }
.login-art-mint { --login-art-edge: #309782; background: linear-gradient(145deg, #99eed2, #4ad3ad 60%, #36ba9b); }
.login-art-gold { --login-art-edge: #c18e34; background: linear-gradient(145deg, #ffe6aa, #ffc857 60%, #f0b745); }
.login-story-topics span { background: linear-gradient(180deg, #fff, #fcf9ff); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #e5dce9, 0 5px 10px #36264d05; }
.login-panel {
  background: linear-gradient(145deg, #fff 15%, #fff 70%, #faf7ff);
  box-shadow: inset 0 2px 1px #fff, 0 5px 0 #e5dfeb, 0 22px 50px #45306513;
}
.login-input { background: linear-gradient(180deg, #f8f5fd, #fcfaff); box-shadow: inset 0 2px 3px #49326608, 0 1px 0 #fff; }
.login-input:focus-within { box-shadow: 0 0 0 3px #6c4ef615, inset 0 2px 3px #49326606, 0 1px 0 #fff; }
.login-submit {
  background: linear-gradient(155deg, #9677ff, #6c4ef6 52%, #5c3ed0);
  box-shadow: inset 0 2px 1px #ffffff50, inset 0 -1px 0 #29147930, 0 4px 0 #4930aa, 0 10px 20px #6c4ef622;
}
.login-submit:enabled:hover { background: linear-gradient(155deg, #9e80ff, #7456fc 52%, #6445db); box-shadow: inset 0 2px 1px #ffffff60, 0 4px 0 #4930aa, 0 12px 24px #6c4ef62b; }
.login-submit:enabled:active { transform: translateY(3px); box-shadow: inset 0 2px 3px #29147930, 0 1px 0 #4930aa, 0 4px 10px #6c4ef620; }
.login-submit:disabled, .login-submit[aria-disabled="true"] { transform: none !important; box-shadow: none !important; background: #6c4ef6; }
.login-password-toggle:enabled:active { box-shadow: inset 0 2px 4px #4930aa18; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .login-submit { transform: none !important; }
}

/* Colorful bead blocks share the management console's permanent, chunky depth. */
body { background: #f5eeff; }
.login-shell::before {
  background:
    radial-gradient(ellipse at 10% 10%, #cda5ff88, transparent 44%),
    radial-gradient(ellipse at 0% 95%, #90eabc75, transparent 39%),
    radial-gradient(ellipse at 94% 90%, #ffd68b96, transparent 39%);
}
.login-story-brand > span { color: #44305f; background: linear-gradient(145deg, #ffefac, #ffd15c 62%, #ffb845); box-shadow: inset 0 3px 0 #fffc, 0 5px 0 #c28432, 0 10px 15px #50388122; }
.login-story-eyebrow { display: inline-block; color: #592b8b; background: #ead9ff; border: 1px solid #c9afe5; border-radius: 999px; padding: 8px 13px; margin-top: 38px; margin-bottom: 14px; letter-spacing: .02em; }
.login-story h2 { color: #332045; text-shadow: 0 2px 0 #fff9; }
.login-story > p { color: #665273; }
.login-story-art { gap: 15px; padding: 10px 10px 17px; grid-template-rows: 85px 85px; }
.login-story-art > div { position: relative; border: 2px solid #ffffff77; border-radius: 22px; padding: 17px; font-size: 23px; box-shadow: inset 0 3px 1px #ffffffb3, inset 0 -3px 1px #00000017, 0 9px 0 var(--login-art-edge), 0 19px 24px #49326827; }
.login-story-art > div::after { position: absolute; right: 13px; top: 11px; width: 18px; height: 18px; border: 5px solid #ffffff5c; border-radius: 50%; box-shadow: inset 0 1px 3px #0003, 0 1px 0 #fff9; content: ""; }
.login-art-purple { --login-art-edge: #542296; background: linear-gradient(145deg, #ad7dfb, #7d44ee 47%, #6532c3); }
.login-art-coral { --login-art-edge: #cf4257; background: linear-gradient(140deg, #ffae79, #ff775d 51%, #ff5781); }
.login-art-mint { --login-art-edge: #238b65; background: linear-gradient(140deg, #c3f979, #6bdfa7 50%, #37c796); }
.login-art-gold { --login-art-edge: #be7d24; background: linear-gradient(140deg, #fff080, #ffd055 50%, #ffad3e); }
.login-story-topics { margin-top: 20px; gap: 11px; }
.login-story-topics span { padding: 8px 13px; border: 1px solid #c8ace6; color: #543366; background: #e7d2ff; box-shadow: inset 0 2px 0 #fff9, 0 3px 0 #b59ccb; }
.login-story-topics span:nth-child(2) { background: #c5eed3; border-color: #9bc5ab; box-shadow: inset 0 2px 0 #fff9, 0 3px 0 #86b196; }
.login-story-topics span:nth-child(3) { background: #ffddbc; border-color: #deb48b; box-shadow: inset 0 2px 0 #fff9, 0 3px 0 #c7a17d; }
.login-panel { position: relative; overflow: hidden; border: 2px solid #c7a7e8; border-top: 7px solid #8550e9; border-radius: 26px; background: linear-gradient(135deg, #fff 65%, #f2e8ff); box-shadow: inset 0 3px 0 #fff, 0 8px 0 #af90cc, 0 23px 38px #45306520; }
.login-brand > div > span { color: #8151ab; }
.login-brand h1 { color: #38234b; }
.login-input { border: 2px solid #dccdea; border-radius: 13px; background: linear-gradient(180deg, #f0e8f9, #faf5ff); box-shadow: inset 0 3px 4px #4932660c, 0 2px 0 #fff; }
.login-input:focus-within { border-color: #9268d5; background: #fcf9ff; box-shadow: 0 0 0 3px #b88ce630, inset 0 2px 3px #49326608; }
.login-submit { border-radius: 13px; border: 1px solid #ab7ef4; background: linear-gradient(155deg, #ab75ff, #7a3fe5 51%, #6330be); box-shadow: inset 0 3px 0 #dfbdff66, 0 5px 0 #482386, 0 13px 20px #6c4ef628; }
.login-submit:enabled:hover { background: linear-gradient(155deg, #b985ff, #844cef 51%, #6d3bc9); box-shadow: inset 0 3px 0 #dfbdff88, 0 5px 0 #482386, 0 15px 24px #6c4ef632; }
.login-submit:enabled:active { transform: translateY(4px); box-shadow: inset 0 3px 4px #3a196e20, 0 1px 0 #482386, 0 5px 10px #6c4ef622; }
.login-story-brand:focus-visible { outline: 3px solid #6c4ef6; outline-offset: 5px; border-radius: 8px; }
@media (max-width: 1120px) { .login-story-art { gap: 12px; grid-template-rows: 78px 78px; } .login-story-art > div { padding: 13px; font-size: 21px; } }
@media (max-width: 760px) {
  .login-shell { gap: 23px; }
  .login-story-eyebrow { display: none; }
  .login-story h2 { margin-top: 20px; }
  .login-panel { border-radius: 23px; }
}
@media (max-width: 350px) { .login-panel { padding: 20px 17px; } }
@media (prefers-reduced-motion: reduce) { .login-submit { transform: none !important; } }

.login-brand-mark {
  display: none;
}

.login-page .login-shell .login-footer-note {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
}

/* Match the store workbench on phones and keep the form in document flow. */
@media (max-width: 767px), (max-width: 1023px) and (pointer: coarse) {
  .login-page .login-shell {
    --login-white: #202124;
    --login-white-strong: #202124;
    --login-white-body: #3c4043;
    --login-white-muted: #5f6368;
    --login-line: #dbe3ef;
    --login-teal-light: #1967d2;
    --login-error: #a32621;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 0;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: linear-gradient(165deg, #eef5ff, #f8f9fa 60%);
  }

  .login-page .login-shell::before,
  .login-page .login-story {
    display: none;
  }

  .login-page .login-shell .login-panel {
    grid-column: 1;
    justify-self: center;
    display: grid;
    gap: 14px;
    width: min(100%, 420px);
    max-width: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .login-page .login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 19px 17px;
    border: 1px solid #c9dbf6;
    border-radius: 18px;
    background: linear-gradient(115deg, #e2eeff, #f4f8ff);
  }

  .login-page .login-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .login-page .login-brand > div > span {
    display: none;
  }

  .login-page .login-shell .login-brand h1 {
    overflow: visible;
    color: #173660;
    font-size: clamp(20px, 6vw, 27px);
    line-height: 1.3;
    letter-spacing: 0;
  }

  .login-page .login-brand p {
    margin-top: 2px;
    color: #466189;
    font-size: 13px;
    line-height: 1.4;
  }

  .login-page .login-form {
    gap: 15px;
    padding: 21px clamp(15px, 5vw, 24px) 20px;
    border: 1px solid var(--login-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px #1837600a;
  }

  .login-page .login-form-heading {
    margin: 0 0 2px;
    text-align: left;
  }

  .login-page .login-form-heading strong {
    font-size: 19px;
    line-height: 1.35;
  }

  .login-page:not(.login-owner-entry) .login-form-heading span {
    display: none;
  }

  .login-page .login-field {
    gap: 6px;
    font-size: 14px;
  }

  .login-page .login-shell .login-input {
    border-color: #c7d4e6;
    border-radius: 12px;
    background: #f6f9fd;
  }

  .login-page .login-shell .login-input:focus-within {
    border-color: #1967d2;
    background: #fff;
    box-shadow: 0 0 0 3px #1967d221;
  }

  .login-page .login-shell .login-input input {
    height: 50px;
    font-size: 16px;
    font-weight: 400;
  }

  .login-page .login-shell .login-input input::placeholder {
    color: #5c6b80;
  }

  .login-page .login-input-password {
    grid-template-columns: 27px minmax(0, 1fr) 44px;
  }

  .login-page .login-shell .login-password-toggle {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    color: #52617a;
  }

  .login-page .login-shell .login-password-toggle[aria-pressed="true"] {
    color: #1967d2;
    background: #e8f0fe;
  }

  .login-page .login-options {
    justify-content: space-between;
    align-items: center;
    gap: 0 10px;
    margin: -7px 0 -5px;
    font-size: 12px;
  }

  .login-page .login-remember {
    min-height: 44px;
  }

  .login-page .login-credential-hint {
    flex: 0 1 auto;
  }

  .login-page .login-shell .login-submit:is(:enabled, :disabled, [aria-disabled="true"]) {
    min-height: 50px;
    margin: 0;
    padding: 0 40px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(110deg, #155dc4, #236dd5);
    box-shadow: none;
    font-size: 16px;
  }

  .login-page .login-shell .login-submit:enabled:hover {
    background: #165dc4;
  }

  .login-page .login-shell :is(a, button, input):focus-visible {
    outline-color: #1967d2;
  }

  .login-page .login-message {
    min-height: 0;
    margin: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .login-page .login-message:empty {
    position: absolute;
  }

  .login-page .login-footer-dot,
  .login-page .login-footer-note,
  .login-page:not(.login-owner-entry) .login-panel-foot {
    display: none;
  }

  .login-page .login-panel-foot {
    justify-content: center;
    margin: -8px 0 0;
    padding: 0;
    border: 0;
  }

  .login-page #ownerLoginBack {
    display: grid;
    min-height: 44px;
    align-items: center;
    color: #1967d2;
    font-size: 13px;
  }

  .login-page #ownerLoginBack[hidden] {
    display: none;
  }
}

@media (max-width: 767px) and (max-height: 580px),
  (max-width: 1023px) and (pointer: coarse) and (max-height: 540px) {
  .login-page .login-shell {
    align-content: start;
    padding-block-start: max(14px, env(safe-area-inset-top));
  }
}
