:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #21182d;
  background: #faf7ff;
  font-synthesis: none;
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --muted: #71677d;
  --line: rgba(124, 58, 237, 0.13);
}

* { box-sizing: border-box; }

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.13), transparent 32rem),
    radial-gradient(circle at 54% 100%, rgba(124, 58, 237, 0.08), transparent 28rem),
    linear-gradient(140deg, #fff 0%, #faf7ff 58%, #f7f0ff 100%);
}

.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(124, 58, 237, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.auth-frame {
  position: relative;
  width: min(100%, 80rem);
  min-height: min(51.25rem, calc(100vh - 3rem));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(25rem, .85fr);
  padding: .65rem;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, .1);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 40px 110px -60px rgba(46, 16, 101, .52);
}

.brand-bar {
  position: absolute;
  z-index: 5;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.2rem;
  padding: .58rem .9rem;
  color: #28193b;
  text-decoration: none;
  pointer-events: auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: .9rem;
  box-shadow: 0 16px 36px -28px rgba(17, 9, 28, .7);
}

.brand-lockup img { width: 7.6rem; height: auto; display: block; }
.brand-lockup span { padding-left: .7rem; border-left: 1px solid #ded5e9; font-size: .65rem; font-weight: 800; letter-spacing: .15em; }

.private-label { display: flex; align-items: center; gap: .55rem; margin: 0; color: #665d72; font-size: .74rem; font-weight: 650; }
.private-label span { width: .48rem; height: .48rem; border-radius: 99px; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }

.story {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8.5rem 4.2rem 3.25rem;
  overflow: hidden;
  border-radius: 1.45rem;
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(196, 150, 255, .3), transparent 16rem),
    radial-gradient(circle at 5% 92%, rgba(139, 92, 246, .34), transparent 20rem),
    linear-gradient(145deg, #291344 0%, #3d1766 48%, #55228a 100%);
}

.story::before, .story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.story::before { width: 34rem; height: 34rem; right: -20rem; top: -13rem; }
.story::after { width: 25rem; height: 25rem; left: -17rem; bottom: -16rem; }

.story-copy, .delivery-card, .story-foot { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1.1rem; color: #d8b4fe; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.story h1 { max-width: 38rem; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5vw, 5.4rem); font-weight: 400; line-height: .96; letter-spacing: -.055em; }
.story h1 em { display: block; color: #caa7ff; font-style: italic; }
.story-description { max-width: 32rem; margin: 1.55rem 0 0; color: rgba(255,255,255,.72); font-size: 1.03rem; line-height: 1.65; }

.delivery-card { margin-top: 3.4rem; padding: 1.25rem 1.35rem 1.35rem; border: 1px solid rgba(255,255,255,.13); border-radius: 1.15rem; background: rgba(255,255,255,.075); backdrop-filter: blur(12px); }
.delivery-card > p { margin: 0 0 .45rem; color: #c9a7f3; font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.delivery-card > strong { font-size: .98rem; font-weight: 620; }
.delivery-card ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.delivery-card li { position: relative; display: flex; flex-direction: column; gap: .38rem; color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 700; }
.delivery-card li::before { content: ""; height: 2px; width: 100%; background: rgba(255,255,255,.18); }
.delivery-card li.active { color: white; }
.delivery-card li.active::before { background: #c084fc; }
.delivery-card li span { color: rgba(255,255,255,.42); font-size: .55rem; letter-spacing: .12em; }

.story-foot { display: flex; align-items: center; gap: .85rem; margin: auto 0 0; padding-top: 2.4rem; color: rgba(255,255,255,.4); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-foot i { width: 2rem; height: 1px; background: rgba(255,255,255,.18); }

.login-panel { min-width: 0; display: flex; flex-direction: column; padding: 8.2rem clamp(2rem, 5vw, 4.5rem) 1.5rem; background: white; }
.panel-content { width: min(100%, 26rem); margin: auto; }
.panel-intro h2 { margin: 0; color: #21152e; font-family: Georgia, "Times New Roman", serif; font-size: 2.25rem; font-weight: 500; letter-spacing: -.035em; }
.panel-intro p { margin: .6rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.sso-message { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; padding: 1rem; border: 1px solid #e4dceb; border-radius: .85rem; background: #fbf9fd; }
.sso-message img { width: 2.2rem; height: 2.2rem; padding: .5rem; border-radius: .65rem; background: #ede9fe; }
.sso-message div { display: flex; flex-direction: column; gap: .24rem; }
.sso-message strong { color: #3d284f; font-size: .8rem; }
.sso-message span { color: #7c7186; font-size: .7rem; line-height: 1.4; }
.submit { height: 3.25rem; display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: 1.15rem; color: white; border-radius: .78rem; background: linear-gradient(135deg, #7c3aed, #6426bb); box-shadow: 0 14px 28px -14px rgba(91, 33, 182, .65); font-size: .84rem; font-weight: 750; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.submit:hover { transform: translateY(-1px); box-shadow: 0 17px 30px -14px rgba(91,33,182,.75); }
.submit:focus-visible { outline: 3px solid rgba(124, 58, 237, .28); outline-offset: 3px; }
.access-help { margin: 1rem 0 0; color: #796d84; text-align: center; font-size: .72rem; line-height: 1.5; }
.login-panel footer { margin-top: auto; padding-top: 2rem; color: #8a8092; text-align: center; font-size: .66rem; }
.login-panel footer span { display: inline-grid; width: 1.15rem; height: 1.15rem; margin-right: .3rem; place-items: center; color: #6d28d9; border-radius: 99px; background: #ede9fe; font-size: .65rem; font-weight: 900; }

@media (max-width: 850px) {
  .auth-shell { padding: 0; background: white; }
  .auth-frame { min-height: 100vh; grid-template-columns: 1fr; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .story { display: none; }
  .brand-bar { top: 1.25rem; left: 1.25rem; right: 1.25rem; }
  .private-label { display: none; }
  .login-panel { min-height: 100vh; padding: 7.5rem 1.35rem 1.25rem; }
  .panel-content { width: min(100%, 29rem); }
}

@media (max-height: 720px) and (min-width: 851px) {
  .auth-frame { min-height: calc(100vh - 2rem); }
  .auth-shell { padding: 1rem; }
  .story { padding-top: 7rem; }
  .story h1 { font-size: 3.5rem; }
  .delivery-card { margin-top: 2rem; }
  .login-panel { padding-top: 7rem; }
}

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