:root {
  --bg: #f7efe4;
  --panel: rgba(255, 250, 242, .79);
  --text: #14201c;
  --muted: #51665e;
  --line: rgba(42, 54, 48, .18);
  --green: #00483e;
  --coral: #e47d5f;
  --gold: #c89b4a;
  --ivory: #fff8ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  background: #f1dfc7;
}

.login-stage {
  width: 100%;
  min-height: 100vh;
  display: grid;
  justify-items: center;
  background:
    linear-gradient(90deg, rgba(233, 212, 181, .9), rgba(249, 238, 220, .95) 18%, rgba(244, 224, 193, .9));
}

.scene-shell {
  position: relative;
  width: min(100vw, 1672px);
  aspect-ratio: 1672 / 941;
  background-image: image-set(
    url("/assets/aromaqueen-login-scene.webp") type("image/webp"),
    url("/assets/aromaqueen-login-scene.png") type("image/png")
  );
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.mobile-products-stage {
  display: none;
}

.login-card {
  position: absolute;
  left: 29.6%;
  top: 48.8%;
  width: 27.9%;
  max-width: 470px;
  min-width: min(440px, 27.9vw);
  min-height: 447px;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 26px 39px 30px;
  border: 1px solid rgba(139, 105, 58, .32);
  border-radius: 24px;
  background: rgba(255, 249, 238, .78);
  box-shadow:
    0 16px 34px rgba(62, 43, 21, .18),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(7px);
}

.login-pill {
  justify-self: center;
  min-width: 125px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
  border: 2px solid rgba(195, 147, 66, .9);
  border-radius: 999px;
  background: linear-gradient(180deg, #0f6b53 0%, #004339 100%);
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 5px 10px rgba(38, 27, 13, .18);
}

.field {
  height: 61px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(74, 55, 32, .4);
  border-radius: 8px;
  background: rgba(255, 250, 241, .5);
  padding: 0 18px;
}

.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #103c36;
  font: inherit;
  font-size: 18px;
}

.field input::placeholder { color: #8b7a63; opacity: 1; }
.field-icon {
  width: 24px;
  height: 24px;
  color: #9d7637;
  line-height: 1;
}

.field-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-button {
  height: 67px;
  margin-top: 4px;
  border: 3px double var(--gold);
  border-radius: 12px;
  background: linear-gradient(180deg, #075244 0%, #003d36 100%);
  color: #fff7ec;
  box-shadow: 0 8px 17px rgba(23, 33, 28, .28);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: rgba(200, 155, 74, .55);
}

.login-divider span {
  width: 22px;
  height: 15px;
  justify-self: center;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 42%, 100% 22%, 72% 68%, 50% 100%, 28% 68%, 0 22%, 38% 42%);
}

.login-card p {
  margin: 0;
  color: #064a41;
  font-size: 19px;
  text-align: center;
}

@media (min-width: 901px) and (max-height: 780px) {
  .login-card {
    width: 25%;
    max-width: 420px;
    min-width: min(350px, 25vw);
    min-height: 0;
    gap: 14px;
    padding: 18px 31px 22px;
    border-radius: 20px;
  }

  .login-pill {
    min-width: 112px;
    height: 29px;
    margin-bottom: 1px;
    font-size: 16px;
  }

  .field {
    height: 50px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 0 15px;
  }

  .field input { font-size: 16px; }
  .field-icon, .field-icon svg { width: 20px; height: 20px; }

  .login-button {
    height: 55px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 22px;
  }

  .login-divider {
    grid-template-columns: 1fr 34px 1fr;
    gap: 9px;
    margin-top: 7px;
  }

  .login-divider span {
    width: 18px;
    height: 12px;
  }

  .login-card p { font-size: 16px; }
}

@media (max-width: 900px) {
  main { min-height: 281.2vw; }

  .login-stage {
    min-height: 281.2vw;
    background: #ead2ad;
  }

  .scene-shell {
    width: 100vw;
    aspect-ratio: 748 / 2103;
    background-image: image-set(
      url("/assets/aromaqueen-login-mobile-20260714-184735.webp") type("image/webp"),
      url("/assets/aromaqueen-login-mobile-20260714-184735.png") type("image/png")
    );
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .mobile-products-stage {
    position: relative;
    display: block;
    width: 100vw;
    aspect-ratio: 512 / 1280;
    margin-top: -1px;
    background:
      linear-gradient(
        180deg,
        rgba(231, 207, 170, .86) 0,
        rgba(231, 207, 170, .38) 4.5vw,
        rgba(231, 207, 170, 0) 13vw
      ),
      url("/assets/aromaqueen-products-mobile-20260714.jpg");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .login-card {
    left: 50%;
    top: 57vw;
    bottom: auto;
    width: 58vw;
    min-width: 0;
    max-width: none;
    min-height: 0;
    padding: 2.2vw 4vw 2.5vw;
    gap: 1.6vw;
    border-radius: 2.6vw;
    border-color: rgba(120, 87, 46, .42);
    background: rgba(235, 222, 201, .9);
    box-shadow: 0 2.2vw 5vw rgba(45, 31, 17, .24), inset 0 1px 0 rgba(255, 255, 255, .52);
    transform: translateX(-50%);
  }

  .login-pill {
    min-width: 16vw;
    height: 4vw;
    margin-bottom: .3vw;
    font-size: 2.4vw;
  }

  .field {
    height: 6.6vw;
    grid-template-columns: 4.7vw minmax(0, 1fr);
    padding: 0 2.1vw;
    border-radius: 1.1vw;
    background: rgba(255, 247, 232, .58);
  }

  .field input { font-size: 2.2vw; }
  .field-icon, .field-icon svg { width: 2.8vw; height: 2.8vw; }

  .login-button {
    height: 7.3vw;
    border-radius: 1.4vw;
    font-size: 3vw;
  }

  .login-divider {
    grid-template-columns: 1fr 5vw 1fr;
    gap: 1.2vw;
    margin-top: .8vw;
  }

  .login-divider span {
    width: 2.6vw;
    height: 1.7vw;
  }

  .login-card p { font-size: 2vw; }
}

@media (max-width: 560px) {
  .login-card { width: 58vw; }
}
