:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f9fa;
  background: #04121e;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

.shop-login-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 48% 7%, #12424f 0, #071a2b 32%, transparent 70%),
    radial-gradient(ellipse at 92% 94%, #0b2632, transparent 46%),
    #040e19;
}

.shop-login {
  container-type: inline-size;
  isolation: isolate;
  width: min(100%, 605px);
  margin-inline: auto;
  background: #061a26;
}

.shop-order-notice {
  margin: 0;
  padding: .7rem 1rem;
  border-bottom: 1px solid #997449;
  background: #28252a;
  color: #ffebc5;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.shop-login-art,
.shop-login-tail {
  position: relative;
  overflow: hidden;
}

.shop-login-art {
  aspect-ratio: 605 / 463;
  mask-image: linear-gradient(#000 96%, transparent);
}

.shop-login-art img,
.shop-login-tail img {
  position: absolute;
  inset-inline: 0;
  display: block;
  width: 100%;
  height: auto;
}

.shop-login-art img { top: 0; }

.shop-login-form {
  position: relative;
  margin: -3.3cqw 3.47cqw 0;
  padding: 6.55cqw 7.45cqw 6.45cqw;
  border: 1px solid transparent;
  border-radius: 9.5cqw;
  background:
    radial-gradient(ellipse at 0% 1%, #42413c 0, #16353e 9%, transparent 24%) padding-box,
    radial-gradient(ellipse at 100% 0%, #12516f 0, transparent 34%) padding-box,
    radial-gradient(ellipse at 86% 100%, #0c3b4b 0, transparent 37%) padding-box,
    radial-gradient(ellipse at -5% 48%, #353751 0, transparent 13%) padding-box,
    linear-gradient(120deg, #071d2a 21%, #0b2635 70%, #071b29) padding-box,
    conic-gradient(from 212deg, #8da1a9, #2e576c 12%, #a492be 17%, #343f58 27%, #e3c0a2 35%, #6290a1 42%, #b8f2fc 56%, #396489 68%, #9e9cb3 79%, #50ccdb 89%, #8da1a9) border-box;
  box-shadow: inset 0 0 1.45rem #7bd9ff24, 0 .7rem 2.5rem #011019a6;
}

.shop-login-heading { margin-inline-start: 2.3cqw; }

.shop-login-brand {
  display: flex;
  align-items: center;
  gap: 2.7cqw;
  margin: 0;
  color: #a9f5eb;
  font-size: clamp(.66rem, 2.75cqw, 1.06rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .44em;
  text-transform: uppercase;
}

.shop-login-brand::after {
  flex: 1;
  max-width: 29cqw;
  height: 1px;
  background: linear-gradient(90deg, #a1eadd80, transparent);
  content: "";
}

#sign-in-title {
  margin: 3.15cqw 0 0;
  font-size: clamp(1.57rem, 8.28cqw, 3.12rem);
  font-weight: 720;
  line-height: 1.055;
  letter-spacing: -.042em;
}

#sign-in-title span { display: block; color: #9df2e6; }

.shop-login-intro {
  margin: 2.5cqw 0 0;
  color: #c3d2df;
  font-size: clamp(.88rem, 3.72cqw, 1.42rem);
  line-height: 1.33;
  letter-spacing: .004em;
}

.shop-login-intro span { display: block; }

#shop-login { margin-top: 5.05cqw; }
.shop-login-field + .shop-login-field { margin-top: 3.8cqw; }

.shop-login-field label {
  display: block;
  margin: 0 0 1.75cqw .75cqw;
  font-size: clamp(.88rem, 3.45cqw, 1.3rem);
  font-weight: 580;
  line-height: 1.35;
}

.shop-login-input { position: relative; display: flex; align-items: center; }

.shop-login-input > svg {
  position: absolute;
  z-index: 1;
  inset-inline-start: 4.15cqw;
  width: clamp(1.1rem, 4.85cqw, 1.85rem);
  height: auto;
  color: #b5cedd;
  pointer-events: none;
}

.shop-login-input input {
  display: block;
  width: 100%;
  min-height: max(44px, 11.3cqw);
  padding: .4rem 3cqw .4rem max(2.75rem, 12cqw);
  border: 1px solid #61849f;
  border-radius: 2.4cqw;
  background: linear-gradient(145deg, #092333, #061a2a 74%);
  box-shadow: inset 0 0 .85rem #5da7d31d;
  color: #f7fcfd;
  font: inherit;
  font-size: max(1rem, 3.25cqw);
}

.shop-login-input.has-toggle input { padding-inline-end: max(3rem, 11cqw); }
.shop-login-input input:hover { border-color: #8bb9cf; }

.shop-login-password-toggle {
  position: absolute;
  inset-inline-end: max(1px, 1.1cqw);
  display: grid;
  place-items: center;
  width: max(44px, 9.65cqw);
  height: max(44px, 9.65cqw);
  padding: 0;
  border: 0;
  border-radius: 1.3cqw;
  background: transparent;
  color: #c0d6e2;
  cursor: pointer;
}

.shop-login-password-toggle svg { width: clamp(1.25rem, 5.25cqw, 2rem); }
.shop-login-password-toggle:hover { color: #f0ffff; }
.shop-login-eye-slash { opacity: 0; }
.shop-login-password-toggle[aria-pressed="true"] .shop-login-eye-slash { opacity: 1; }

.shop-login-submit {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% + 3.3cqw);
  min-height: max(49px, 14.25cqw);
  margin: 4.45cqw -1.65cqw 0;
  padding: .65rem max(2.25rem, 8cqw);
  border: 1px solid #bcfff5;
  border-radius: 4.9cqw;
  background:
    radial-gradient(ellipse at 18% -6%, #fff 0%, transparent 28%),
    radial-gradient(ellipse at 95% 84%, #c6fff4 0%, transparent 27%),
    linear-gradient(180deg, #bdf9ec 0%, #78ddd2 43%, #5fcfc6 75%, #abfcf4);
  box-shadow: inset 0 0 .85rem #faffffbf, 0 0 1.45rem #70f9e57a, 0 .4rem .85rem #02242f;
  color: #031821;
  font: inherit;
  font-size: clamp(.87rem, 4.08cqw, 1.55rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.027em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.shop-login-submit svg {
  position: absolute;
  inset-inline-end: 5.4cqw;
  top: 50%;
  width: clamp(1rem, 5.3cqw, 2rem);
  transform: translateY(-50%);
}

.shop-login-submit:hover:not(:disabled) { filter: brightness(1.065); }
.shop-login-submit:disabled { opacity: .7; cursor: wait; }
.shop-login-form :focus-visible { outline: 2px solid #adfff3; outline-offset: 3px; }
.shop-login-form input:focus-visible { border-color: #aef6ef; }

.shop-access-note,
#shop-login-message,
.shop-login-form noscript { margin: 1rem 0 0; color: #ffd2e7; font-size: .9rem; }
#shop-login-message:empty { display: none; }

.shop-login-footer {
  position: relative;
  z-index: 1;
  margin: 3.25cqw 0 0;
  color: #bfcdda;
  font-size: clamp(.77rem, 3.08cqw, 1.16rem);
  line-height: 1.5;
  text-align: center;
}

.shop-login-footer span { margin-inline: .37em; }
.shop-login-footer a { display: block; margin-top: .25rem; color: #b3f8ee; text-decoration: underline; text-underline-offset: .2em; }

.shop-login-tail {
  aspect-ratio: 605 / 70;
  margin-top: -.55cqw;
  mask-image: linear-gradient(transparent, #000 33%);
}

.shop-login-tail img { bottom: 0; }

@media (min-width: 46rem) {
  .shop-login {
    width: min(605px, max(390px, 46.5svh));
    box-shadow: 0 0 5rem #0009;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .shop-login-submit { animation: fiyowa-login-glow 9s ease-in-out infinite; }
}

@keyframes fiyowa-login-glow {
  50% { box-shadow: inset 0 0 .95rem #faffffd4, 0 0 1.65rem #70f9e592, 0 .4rem .85rem #02242f; }
}
