/* Credencialize login — page-specific tokens and components. */
:root {
  color-scheme: light;
  --ink-950: #030914;
  --ink-900: #06101f;
  --ink-850: #091627;
  --ink-800: #0d1b2f;
  --ink-700: #152943;
  --cyan-300: #88ecff;
  --cyan-400: #48ddf8;
  --cyan-500: #00d4ff;
  --blue-500: #248dff;
  --violet-400: #8c72ff;
  --violet-500: #6857f5;
  --rose-400: #ea72d6;
  --white: #f8fbff;
  --text-primary: rgba(248, 251, 255, .96);
  --text-secondary: rgba(220, 233, 247, .67);
  --text-muted: rgba(204, 221, 238, .46);
  --line-soft: rgba(182, 226, 255, .12);
  --line-medium: rgba(178, 230, 255, .2);
  --glass: rgba(8, 20, 36, .69);
  --danger: #ff7690;
  --success: #6ce6ac;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.65, 0, .35, 1);
  --card-radius: 30px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --cyan-300: var(--brand-cyan-soft);
  --cyan-400: var(--dark-focus);
  --cyan-500: var(--brand-cyan);
  --text-primary: var(--color-text);
  --text-secondary: color-mix(in srgb, var(--color-text-secondary) 82%, transparent);
  --text-muted: color-mix(in srgb, var(--color-text-muted) 72%, transparent);
  --line-soft: var(--color-border);
  --line-medium: var(--color-border-strong);
  --glass: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: #8ed3f2;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  background: #8ed3f2;
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  color: #04101e;
  background: var(--cyan-300);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-950);
  background: var(--white);
  font-size: .84rem;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Airy sky background ----------------------------------------------------- */
.sky-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 8%, rgba(255, 250, 207, .82) 0, rgba(255, 244, 190, .25) 13%, transparent 31%),
    radial-gradient(ellipse at 76% 78%, rgba(225, 247, 255, .7), transparent 43%),
    linear-gradient(165deg, #65bde9 0%, #8fd4f3 39%, #b9e5f8 68%, #e0f4fb 100%);
  transition: background 1s var(--ease-smooth);
}

.sky-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .13), transparent 32%),
    radial-gradient(ellipse 80% 70% at 50% 54%, transparent 38%, rgba(40, 124, 178, .08) 100%);
  pointer-events: none;
}

.sky-scene__sun {
  position: absolute;
  top: -14vw;
  left: -8vw;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 249, 212, .24);
  filter: blur(70px);
  animation: sun-breathe 11s ease-in-out infinite alternate;
  transition: background .9s ease, opacity .9s ease, filter .9s ease;
}

.star-field {
  position: absolute;
  inset: -12%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.star-field--small {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.88) 0 1px, transparent 1.35px),
    radial-gradient(circle, rgba(151,211,255,.78) 0 .7px, transparent 1.1px),
    radial-gradient(circle, rgba(216,199,255,.72) 0 .8px, transparent 1.2px);
  background-position: 18px 23px, 71px 92px, 132px 48px;
  background-size: 157px 157px, 211px 211px, 263px 263px;
  animation: stars-drift 120s linear infinite;
}

.star-field--large {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.96) 0 1.25px, rgba(123,205,255,.25) 1.8px, transparent 3.2px),
    radial-gradient(circle, rgba(232,239,255,.9) 0 1px, transparent 2.4px);
  background-position: 46px 69px, 171px 126px;
  background-size: 307px 307px, 419px 419px;
  animation: stars-pulse 5.5s ease-in-out infinite alternate;
}

.shooting-star {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 76%;
  width: 110px;
  height: 1px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(192, 230, 255, .72), #fff);
  box-shadow: 0 0 8px rgba(128, 204, 255, .38);
  transform: rotate(-32deg);
  pointer-events: none;
  animation: shooting-star 11s ease-in infinite;
}

.shooting-star--two {
  top: 57%;
  left: 18%;
  width: 74px;
  animation-delay: -5.3s;
  animation-duration: 14s;
}

.sky-cloud {
  --cloud-scale: 1;
  position: absolute;
  left: 0;
  z-index: 1;
  width: min(980px, 76vw);
  aspect-ratio: 1672 / 941;
  background: url("../images/cloud-atlas.png") center / contain no-repeat;
  mix-blend-mode: screen;
  filter: blur(2px) saturate(.7) contrast(.96) brightness(.98);
  will-change: transform;
  animation: cloud-drift-right 92s linear infinite;
  transition: opacity 1s ease, filter 1s ease;
}

.sky-cloud--one {
  --cloud-scale: .78;
  top: 12%;
  opacity: .3;
  animation-duration: 89s;
  animation-delay: -34s;
}

.sky-cloud--two {
  --cloud-scale: 1.06;
  top: 46%;
  width: min(820px, 70vw);
  opacity: .15;
  filter: blur(5px) saturate(.62) contrast(.94);
  animation-name: cloud-drift-left;
  animation-duration: 116s;
  animation-delay: -53s;
}

.sky-cloud--three {
  --cloud-scale: 1.22;
  top: 72%;
  width: min(1080px, 82vw);
  opacity: .1;
  filter: blur(8px) saturate(.55) contrast(.92);
  animation-duration: 138s;
  animation-delay: -44s;
}

.sky-scene__haze {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 62% 74% at 50% 51%, rgba(255, 255, 255, .045) 0%, transparent 55%),
    linear-gradient(180deg, transparent 58%, rgba(246, 253, 255, .18) 100%);
  backdrop-filter: blur(.35px);
  pointer-events: none;
}

.sky-scene__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

:root[data-theme="dark"],
:root[data-theme="dark"] body {
  background: var(--color-page);
}

:root[data-theme="dark"] .sky-scene {
  background:
    radial-gradient(circle at 20% 45%, rgba(28, 74, 137, .72), transparent 42%),
    radial-gradient(ellipse at 72% 24%, rgba(31, 61, 119, .42), transparent 45%),
    linear-gradient(118deg, var(--dark-canvas-start) 0%, var(--dark-canvas-focus) 44%, var(--dark-canvas-end) 100%);
}

:root[data-theme="dark"] .sky-scene::before {
  background:
    radial-gradient(ellipse 58% 42% at 50% 7%, rgba(76, 128, 208, .1), transparent 72%),
    radial-gradient(ellipse 88% 78% at 50% 54%, transparent 36%, rgba(8, 12, 40, .3) 100%);
}

:root[data-theme="dark"] .sky-scene__sun {
  opacity: .4;
  background: rgba(40, 116, 207, .2);
  filter: blur(105px);
}

:root[data-theme="dark"] .star-field {
  opacity: .74;
}

:root[data-theme="dark"] .star-field--large {
  opacity: .54;
}

:root[data-theme="dark"] .sky-cloud {
  opacity: .025;
  filter: blur(8px) saturate(.4) brightness(.72);
}

:root[data-theme="dark"] .shooting-star {
  animation-play-state: running;
}

:root:not([data-theme="dark"]) .shooting-star {
  animation-play-state: paused;
}

:root[data-theme="dark"] .sky-scene__haze {
  background:
    radial-gradient(ellipse 62% 74% at 50% 51%, rgba(83, 140, 208, .025) 0%, transparent 58%),
    linear-gradient(180deg, transparent 64%, rgba(1, 5, 13, .2) 100%);
}

:root[data-theme="dark"] .sky-scene__grain {
  opacity: .11;
  mix-blend-mode: soft-light;
}


/* Global framing ---------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 64px);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(7, 38, 65, .82);
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}

.wordmark__mark {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 5px 6px 5px 14px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  color: rgba(7, 45, 72, .61);
  background: rgba(245, 252, 255, .31);
  box-shadow: inset 0 1px rgba(255, 255, 255, .52), 0 9px 26px rgba(43, 114, 153, .08);
  backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
  transition: color .45s ease, border-color .45s ease, background .45s ease, box-shadow .45s ease, transform .25s var(--ease-out);
}

.theme-toggle:hover {
  background: rgba(251, 254, 255, .48);
  box-shadow: inset 0 1px rgba(255, 255, 255, .65), 0 12px 30px rgba(43, 114, 153, .12);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0) scale(.98);
}

.theme-toggle:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.theme-toggle:disabled:hover {
  transform: none;
}

.theme-toggle__label {
  min-width: 66px;
  font-size: .69rem;
  font-weight: 620;
  letter-spacing: .015em;
  text-align: right;
}

.theme-toggle__track {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(23, 105, 145, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, #69c9ed, #b1e8fa);
  box-shadow: inset 0 2px 7px rgba(24, 105, 150, .14);
  transition: background .55s var(--ease-smooth), border-color .55s ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #e28e17;
  background: #fffaf0;
  box-shadow: 0 3px 10px rgba(20, 91, 127, .24), inset 0 1px rgba(255, 255, 255, .8);
  transform: translateX(0) rotate(0);
  transition: transform .55s var(--ease-out), color .4s ease, background .4s ease, box-shadow .4s ease;
}

.theme-toggle__thumb svg {
  position: absolute;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .32s ease, transform .55s var(--ease-out);
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-55deg) scale(.6);
}

.theme-toggle__stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}

.theme-toggle__stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #d8edff;
  box-shadow: 0 0 4px rgba(198, 229, 255, .8);
}

.theme-toggle__stars i:nth-child(1) { top: 7px; left: 10px; }
.theme-toggle__stars i:nth-child(2) { top: 18px; left: 17px; width: 1px; height: 1px; }
.theme-toggle__stars i:nth-child(3) { top: 9px; left: 24px; width: 1px; height: 1px; }

:root[data-theme="dark"] .wordmark {
  color: var(--color-text);
}

:root[data-theme="dark"] .theme-toggle {
  color: var(--color-text-secondary);
  border-color: var(--color-border);
  background: color-mix(in srgb, var(--color-surface-raised) 78%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 12px 30px var(--color-shadow);
}

:root[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-soft);
}

:root[data-theme="dark"] .theme-toggle__track {
  border-color: var(--color-border);
  background: linear-gradient(135deg, var(--dark-surface), var(--dark-surface-soft));
  box-shadow: inset 0 2px 8px rgba(0, 2, 13, .35);
}

:root[data-theme="dark"] .theme-toggle__thumb {
  color: var(--dark-canvas-focus);
  background: linear-gradient(145deg, #eef5ff, #bcd5ef);
  box-shadow: 0 3px 12px rgba(0, 4, 16, .42), inset 0 1px rgba(255, 255, 255, .8);
  transform: translateX(28px) rotate(24deg);
}

:root[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(65deg) scale(.55);
}

:root[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(-24deg) scale(1);
}

:root[data-theme="dark"] .theme-toggle__stars {
  opacity: 1;
}

.page-main {
  position: relative;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(76px, 8vh, 104px) clamp(20px, 4vw, 64px) clamp(60px, 7vh, 88px);
}

.auth-card {
  --pointer-x: 50%;
  --pointer-y: 20%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(440px, 1.04fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(1120px, 100%);
  height: clamp(640px, calc(100svh - 164px), 700px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--color-border, rgba(190, 231, 255, .16));
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-surface-raised, #12263d) 92%, transparent), color-mix(in srgb, var(--color-surface, #050f1d) 96%, transparent));
  box-shadow:
    0 42px 100px var(--color-shadow, rgba(0, 4, 13, .56)),
    0 8px 28px rgba(3, 8, 27, .34),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .4);
  backdrop-filter: blur(30px) saturate(1.15);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);
  transform: translateY(0) scale(1);
  transition: transform .8s var(--ease-out), opacity .55s ease, filter .55s ease, background .65s ease, border-color .65s ease, box-shadow .65s ease;
}

.auth-card > *,
.form-panel__inner,
.login-form,
.field-group,
.field-label-row,
.divider {
  min-width: 0;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: radial-gradient(430px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--color-accent, #72e7ff) 14%, transparent), transparent 56%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}

.auth-card.is-pointer-active::before {
  opacity: .7;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
  pointer-events: none;
}

.auth-card__highlight {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 12%;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 247, 255, .72), transparent);
  opacity: .62;
  pointer-events: none;
}

body.transition-running .auth-card {
  opacity: .52;
  filter: blur(7px) saturate(.7);
  transform: scale(.975);
}

/* Left image / campaign slot --------------------------------------------- */
.hero-panel {
  --hero-image: none;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  margin: 9px;
  overflow: hidden;
  border: 1px solid var(--color-border, rgba(163, 225, 255, .11));
  border-radius: calc(var(--card-radius) - 8px);
  background:
    linear-gradient(180deg, rgba(7, 19, 36, .08), rgba(4, 11, 24, .82)),
    var(--hero-image),
    radial-gradient(circle at 72% 22%, rgba(84, 216, 255, .28), transparent 27%),
    radial-gradient(circle at 12% 74%, rgba(111, 74, 231, .25), transparent 35%),
    linear-gradient(145deg, #102d4a 0%, #111d3d 47%, #0a142a 100%);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px rgba(255, 255, 255, .055);
  user-select: none;
  -webkit-user-select: none;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 18%),
    linear-gradient(180deg, transparent 42%, rgba(3, 10, 21, .87) 100%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .1;
  background-image: radial-gradient(circle, rgba(166, 231, 255, .42) .6px, transparent .8px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, black, transparent 57%);
  pointer-events: none;
}

.hero-theme-images {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-surface, #081426);
}

.hero-theme-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  transition: opacity .6s ease;
}

:root:not([data-theme="dark"]) .hero-theme-image[data-theme-image="light"],
:root[data-theme="dark"] .hero-theme-image[data-theme-image="dark"] {
  opacity: 1;
}

.hero-art {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 1;
  width: min(88%, 440px);
  aspect-ratio: 1 / .96;
  transform: translateX(-50%);
  transition: opacity .4s ease;
}

.hero-orbit {
  position: absolute;
  top: 49%;
  left: 50%;
  border: 1px solid rgba(128, 230, 255, .18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-19deg);
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 48%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 20px var(--cyan-400);
}

.hero-orbit--one {
  width: 94%;
  height: 48%;
  animation: orbit-rock 7s ease-in-out infinite alternate;
}

.hero-orbit--two {
  width: 70%;
  height: 86%;
  border-color: rgba(149, 116, 255, .17);
  transform: translate(-50%, -50%) rotate(39deg);
  animation: orbit-rock-two 9s ease-in-out -2s infinite alternate;
}

.hero-orbit--two::after {
  top: auto;
  right: 8%;
  bottom: 5%;
  left: auto;
  width: 6px;
  height: 6px;
  background: #bc83ff;
  box-shadow: 0 0 18px #a468ff;
}

.event-pass {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 178px;
  height: 238px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(215, 249, 255, .2);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(236, 252, 255, .13), transparent 40%),
    linear-gradient(145deg, rgba(23, 60, 87, .78), rgba(8, 19, 42, .94));
  box-shadow:
    0 36px 65px rgba(0, 4, 14, .48),
    0 0 70px rgba(39, 198, 239, .12),
    inset 0 1px rgba(255, 255, 255, .1);
  transform: translate(-50%, -50%) rotate(6deg);
  animation: badge-float 5s ease-in-out infinite;
}

.event-pass::before {
  content: "";
  position: absolute;
  top: -45px;
  left: 50%;
  width: 52px;
  height: 60px;
  border: 4px solid rgba(171, 235, 255, .16);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  transform: translateX(-50%);
}

.event-pass__shine {
  position: absolute;
  inset: -100% auto auto -60%;
  width: 55%;
  height: 250%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: rotate(24deg);
  animation: card-shine 5s ease-in-out infinite;
}

.event-pass__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(220, 244, 252, .65);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .18em;
}

.event-pass__header svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cyan-300);
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.event-pass__portrait {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 21px auto 16px;
  overflow: hidden;
  border: 1px solid rgba(141, 232, 255, .19);
  border-radius: 50%;
  background: rgba(3, 13, 26, .43);
}

.event-pass__portrait span,
.event-pass__portrait i {
  position: absolute;
  left: 50%;
  display: block;
  background: linear-gradient(145deg, #6ea5bc, #3b5978);
  transform: translateX(-50%);
}

.event-pass__portrait span {
  top: 12px;
  width: 19px;
  height: 21px;
  border-radius: 50%;
}

.event-pass__portrait i {
  bottom: -10px;
  width: 49px;
  height: 35px;
  border-radius: 50% 50% 0 0;
}

.event-pass__lines {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.event-pass__lines i {
  display: block;
  height: 4px;
  border-radius: 10px;
  background: rgba(194, 234, 246, .24);
}

.event-pass__lines i:nth-child(1) { width: 76px; background: rgba(224, 250, 255, .48); }
.event-pass__lines i:nth-child(2) { width: 49px; }
.event-pass__lines i:nth-child(3) { width: 62px; }

.event-pass__footer {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: rgba(128, 230, 249, .67);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .14em;
}

.event-pass__barcode {
  width: 53px;
  height: 17px;
  opacity: .48;
  background: repeating-linear-gradient(90deg, #d9f9ff 0 1px, transparent 1px 3px, #d9f9ff 3px 5px, transparent 5px 7px);
}

.scan-line {
  position: absolute;
  top: 22%;
  left: 27%;
  z-index: 3;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 230, 255, .9), transparent);
  box-shadow: 0 0 18px rgba(40, 214, 255, .7);
  animation: scan-pass 4.8s ease-in-out infinite;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(188, 235, 255, .14);
  border-radius: 999px;
  color: rgba(230, 247, 255, .72);
  background: rgba(7, 20, 37, .65);
  box-shadow: 0 12px 25px rgba(0, 4, 14, .2), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.floating-chip span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.floating-chip--one {
  top: 25%;
  left: 4%;
  animation: chip-float 4s ease-in-out -1s infinite;
}

.floating-chip--two {
  right: 1%;
  bottom: 27%;
  animation: chip-float 4.6s ease-in-out -2.2s infinite reverse;
}

.floating-chip--two span {
  background: var(--rose-400);
  box-shadow: 0 0 8px var(--rose-400);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 38px clamp(28px, 4vw, 44px) 41px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.hero-copy__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan-300);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0;
  color: rgba(248, 252, 255, .95);
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: 1.07;
}

.hero-copy p {
  max-width: 340px;
  margin: 16px 0 0;
  color: rgba(220, 237, 248, .58);
  font-size: .85rem;
  line-height: 1.65;
}

.hero-panel__dots {
  position: absolute;
  right: 30px;
  bottom: 35px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.hero-panel__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(214, 246, 255, .2);
}

.hero-panel__dots span:first-child {
  width: 17px;
  border-radius: 4px;
  background: rgba(113, 227, 255, .7);
}

/* Login form -------------------------------------------------------------- */
.form-panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 64px);
  transition: background .65s ease;
}

:root[data-theme="dark"] .form-panel {
  background:
    radial-gradient(circle at 88% 6%, rgba(0, 200, 240, .07), transparent 34%),
    linear-gradient(150deg, rgba(32, 43, 80, .28), rgba(16, 23, 47, .2));
}

.form-panel__inner {
  display: grid;
  align-items: center;
  width: min(100%, 402px);
  min-height: 560px;
}

.auth-view {
  width: 100%;
  animation: auth-view-in .48s var(--ease-out) both;
}

.auth-view[hidden] {
  display: none;
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--color-accent, #84e5f8) 78%, transparent);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.form-heading__eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 12px rgba(72, 221, 248, .7);
}

.form-heading h1 {
  max-width: 370px;
  margin: 0;
  color: var(--color-text, rgba(250, 253, 255, .97));
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 630;
  letter-spacing: -.048em;
  line-height: 1.07;
}

.form-heading p {
  margin: 15px 0 0;
  color: var(--text-secondary);
  font-size: .86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

.auth-form {
  display: grid;
}

.recovery-form {
  gap: 20px;
}

.field-group {
  position: relative;
  display: grid;
  gap: 8px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field-group label,
.field-group legend {
  color: color-mix(in srgb, var(--color-text, #ebf6fc) 80%, transparent);
  font-size: .75rem;
  font-weight: 620;
  letter-spacing: .005em;
}

.otp-field-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.otp-field-group legend {
  margin-bottom: 8px;
  padding: 0;
}

.forgot-link {
  min-width: 0;
  margin: -6px -6px -6px 0;
  padding: 6px;
  border: 0;
  color: color-mix(in srgb, var(--color-accent, #73e0f6) 86%, transparent);
  background: none;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 570;
  transition: color .2s ease;
}

.forgot-link:hover {
  color: var(--cyan-300);
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  margin: -6px 0 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  color: color-mix(in srgb, var(--color-text-secondary, #d5e6f4) 78%, transparent);
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 580;
  transition: color .2s ease, background .2s ease;
}

.back-button:hover {
  color: var(--cyan-300);
  background: color-mix(in srgb, var(--color-surface-soft, #fff) 24%, transparent);
}

.back-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 49px;
  overflow: hidden;
  border: 1px solid var(--color-border, rgba(177, 222, 245, .13));
  border-radius: 13px;
  background: color-mix(in srgb, var(--color-surface-soft, #fff) 38%, transparent);
  box-shadow: inset 0 1px 4px rgba(0, 3, 12, .14);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.field-shell:focus-within {
  border-color: var(--color-border-strong, rgba(87, 220, 249, .56));
  background: color-mix(in srgb, var(--color-surface-soft, #63cfed) 48%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus, #18c5ec) 10%, transparent), inset 0 1px 4px rgba(0, 3, 12, .12);
  transform: translateY(-1px);
}

.field-shell > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 15px;
  fill: none;
  stroke: rgba(177, 216, 233, .47);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s ease;
}

.field-shell:focus-within > svg {
  stroke: var(--cyan-300);
}

.field-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: rgba(247, 252, 255, .93);
  background: transparent;
  caret-color: var(--cyan-300);
  font-size: .83rem;
}

.field-shell input::placeholder {
  color: rgba(193, 215, 229, .32);
}

.otp-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
}

.otp-digit {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 1px solid var(--color-border, rgba(177, 222, 245, .13));
  border-radius: 13px;
  outline: 0;
  color: rgba(247, 252, 255, .96);
  background: color-mix(in srgb, var(--color-surface-soft, #fff) 38%, transparent);
  box-shadow: inset 0 1px 4px rgba(0, 3, 12, .14);
  caret-color: var(--cyan-300);
  font-size: 1.14rem;
  font-weight: 680;
  text-align: center;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.otp-digit:focus {
  border-color: var(--color-border-strong, rgba(87, 220, 249, .56));
  background: color-mix(in srgb, var(--color-surface-soft, #63cfed) 48%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus, #18c5ec) 10%, transparent), inset 0 1px 4px rgba(0, 3, 12, .12);
  transform: translateY(-1px);
}

.security-notice {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  margin: -8px 0 22px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--color-accent, #00c8f0) 18%, transparent);
  border-radius: 13px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--color-accent, #00c8f0) 7%, transparent);
}

.security-notice svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-notice p {
  margin: 0;
  font-size: .7rem;
  line-height: 1.55;
}

.auth-view--success {
  justify-items: center;
  text-align: center;
}

.auth-view--success:not([hidden]) {
  display: grid;
}

.auth-view--success .form-heading {
  margin: 0 0 24px;
}

.auth-view--success .form-heading__eyebrow {
  justify-content: center;
}

.auth-view--success .form-heading h1 {
  max-width: 390px;
}

.success-check {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 27px;
  border: 1px solid rgba(104, 224, 255, .44);
  border-radius: 50%;
  color: #06152d;
  background: linear-gradient(145deg, var(--cyan-300), var(--blue-500));
  box-shadow: 0 18px 48px rgba(0, 174, 234, .24), inset 0 1px rgba(255, 255, 255, .55);
}

.success-check svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#success-countdown {
  color: var(--cyan-300);
  font-weight: 700;
}

.field-shell input:-webkit-autofill,
.field-shell input:-webkit-autofill:hover,
.field-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: rgba(247, 252, 255, .93);
  -webkit-box-shadow: 0 0 0 1000px #0c1c2e inset;
  transition: background-color 9999s ease-out;
}

.password-toggle {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  height: 42px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: rgba(189, 220, 233, .45);
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.password-toggle:hover {
  color: rgba(226, 246, 252, .83);
  background: rgba(255, 255, 255, .035);
}

.password-toggle svg {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .2s ease, transform .25s var(--ease-out);
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  opacity: 0;
  transform: scale(.72);
}

.password-toggle[aria-pressed="true"] .eye-closed {
  opacity: 1;
  transform: scale(1);
}

.field-error {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: block;
  width: 100%;
  min-height: 13px;
  visibility: hidden;
  opacity: 0;
  color: var(--danger);
  font-size: .67rem;
  line-height: 1.15;
  pointer-events: none;
}

.field-group.has-error .field-error {
  visibility: visible;
  opacity: 1;
}

.field-group.has-error .field-shell {
  border-color: rgba(255, 118, 144, .55);
  animation: field-shake .42s ease;
}

.otp-field-group.has-error .otp-fields {
  animation: field-shake .42s ease;
}

.otp-field-group.has-error .otp-digit {
  border-color: rgba(255, 118, 144, .55);
}

.demo-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -3px 0 0;
  color: rgba(199, 223, 235, .43);
  font-size: .66rem;
  line-height: 1.4;
}

.demo-hint svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(112, 222, 245, .58);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.primary-button,
.google-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 13px;
  cursor: pointer;
}

.primary-button {
  gap: 11px;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid rgba(164, 241, 255, .34);
  color: #03121d;
  background: linear-gradient(112deg, #80eaff 0%, #43d6f6 47%, #51bdff 100%);
  box-shadow:
    0 12px 32px rgba(24, 192, 231, .2),
    inset 0 1px rgba(255, 255, 255, .62),
    inset 0 -1px rgba(5, 99, 134, .16);
  font-size: .79rem;
  font-weight: 730;
  transition: transform .24s var(--ease-out), box-shadow .24s ease, filter .24s ease;
}

.primary-button::before {
  content: "";
  position: absolute;
  top: -180%;
  left: -45%;
  width: 32%;
  height: 450%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  transform: rotate(24deg);
  transition: left .65s var(--ease-out);
}

.primary-button:hover {
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 16px 38px rgba(24, 192, 231, .28), inset 0 1px rgba(255, 255, 255, .7), inset 0 -1px rgba(5, 99, 134, .15);
  transform: translateY(-2px);
}

.primary-button:hover::before {
  left: 120%;
}

.primary-button:active,
.google-button:active {
  transform: translateY(0) scale(.985);
}

.primary-button > span,
.primary-button > svg {
  position: relative;
  z-index: 2;
}

.primary-button > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease-out);
}

.primary-button:hover > svg {
  transform: translateX(3px);
}

.primary-button__glow {
  position: absolute;
  right: -20px;
  bottom: -42px;
  width: 110px;
  height: 70px;
  border-radius: 50%;
  background: rgba(111, 90, 255, .28);
  filter: blur(20px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(195, 218, 231, .35);
  font-size: .64rem;
  white-space: nowrap;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(186, 222, 239, .12));
}

.divider::after {
  background: linear-gradient(90deg, rgba(186, 222, 239, .12), transparent);
}

.google-button {
  gap: 11px;
  border: 1px solid var(--color-border, rgba(185, 224, 244, .14));
  color: color-mix(in srgb, var(--color-text, #f0f8fc) 84%, transparent);
  background: color-mix(in srgb, var(--color-surface-soft, #fff) 38%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  font-size: .77rem;
  font-weight: 590;
  transition: border-color .24s ease, background .24s ease, transform .24s var(--ease-out), box-shadow .24s ease;
}

.google-button:hover {
  border-color: var(--color-border-strong, rgba(188, 231, 249, .25));
  background: color-mix(in srgb, var(--color-surface-soft, #fff) 62%, transparent);
  box-shadow: 0 10px 25px rgba(0, 5, 15, .2), inset 0 1px rgba(255, 255, 255, .05);
  transform: translateY(-1px);
}

.google-button svg {
  width: 18px;
  height: 18px;
}

.form-footer {
  margin: 21px 0 0;
  color: rgba(190, 215, 228, .34);
  font-size: .62rem;
  line-height: 1.55;
  text-align: center;
}

.form-footer a {
  text-underline-offset: 2px;
  transition: color .2s ease;
}

.form-footer a:hover {
  color: rgba(151, 232, 249, .75);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 3px;
}

.field-shell input:focus-visible {
  outline: 0;
}

.page-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  color: rgba(5, 47, 75, .44);
  font-size: .62rem;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .02em;
}

/* Light theme ------------------------------------------------------------- */
:root:not([data-theme="dark"]) .auth-card {
  border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(145deg, rgba(248, 253, 255, .82), rgba(230, 244, 251, .74));
  box-shadow:
    0 38px 90px rgba(27, 91, 129, .2),
    0 10px 30px rgba(36, 111, 153, .12),
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -1px 0 rgba(70, 133, 165, .08);
  backdrop-filter: blur(34px) saturate(1.12);
  -webkit-backdrop-filter: blur(34px) saturate(1.12);
}

:root:not([data-theme="dark"]) .auth-card::before {
  opacity: 0;
  background: none;
}

:root:not([data-theme="dark"]) .auth-card::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}

:root:not([data-theme="dark"]) .auth-card__highlight {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .96), transparent);
  opacity: .9;
}

:root:not([data-theme="dark"]) .hero-panel {
  border-color: rgba(255, 255, 255, .52);
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, .42), transparent 29%),
    linear-gradient(145deg, #8fcde9 0%, #78b8d8 48%, #5e9ec5 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 15px 34px rgba(20, 78, 119, .12);
}

:root:not([data-theme="dark"]) .form-panel {
  background:
    radial-gradient(circle at 86% 7%, rgba(83, 191, 231, .1), transparent 31%),
    linear-gradient(155deg, rgba(252, 254, 255, .24), rgba(227, 242, 249, .12));
}

:root:not([data-theme="dark"]) .form-heading__eyebrow {
  color: #087da7;
}

:root:not([data-theme="dark"]) .form-heading__eyebrow i {
  background: #0ea7d1;
  box-shadow: 0 0 12px rgba(14, 167, 209, .38);
}

:root:not([data-theme="dark"]) .form-heading h1 {
  color: #0b2b45;
}

:root:not([data-theme="dark"]) .form-heading p {
  color: #567389;
}

:root:not([data-theme="dark"]) .field-group label,
:root:not([data-theme="dark"]) .field-group legend {
  color: #294b62;
}

:root:not([data-theme="dark"]) .forgot-link {
  color: #087da7;
}

:root:not([data-theme="dark"]) .forgot-link:hover {
  color: #035f84;
}

:root:not([data-theme="dark"]) .back-button {
  color: #496b81;
}

:root:not([data-theme="dark"]) .back-button:hover {
  color: #087da7;
  background: rgba(35, 122, 158, .07);
}

:root:not([data-theme="dark"]) .security-notice {
  border-color: rgba(14, 145, 184, .2);
  color: #496b81;
  background: rgba(14, 167, 209, .07);
}

:root:not([data-theme="dark"]) .security-notice svg {
  stroke: #087da7;
}

:root:not([data-theme="dark"]) .field-shell {
  border-color: rgba(40, 112, 151, .2);
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 1px 3px rgba(57, 115, 145, .07), 0 5px 16px rgba(38, 104, 139, .035);
}

:root:not([data-theme="dark"]) .field-shell:focus-within {
  border-color: rgba(6, 141, 183, .56);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 3px rgba(18, 155, 199, .1), inset 0 1px 3px rgba(57, 115, 145, .04);
}

:root:not([data-theme="dark"]) .field-shell > svg {
  stroke: rgba(35, 92, 124, .58);
}

:root:not([data-theme="dark"]) .field-shell:focus-within > svg {
  stroke: #087fa8;
}

:root:not([data-theme="dark"]) .field-shell input {
  color: #153b53;
}

:root:not([data-theme="dark"]) .field-shell input::placeholder {
  color: rgba(60, 99, 122, .5);
}

:root:not([data-theme="dark"]) .otp-digit {
  border-color: rgba(40, 112, 151, .2);
  color: #153b53;
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 1px 3px rgba(57, 115, 145, .07), 0 5px 16px rgba(38, 104, 139, .035);
}

:root:not([data-theme="dark"]) .otp-digit:focus {
  border-color: rgba(6, 141, 183, .56);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 3px rgba(18, 155, 199, .1), inset 0 1px 3px rgba(57, 115, 145, .04);
}

:root:not([data-theme="dark"]) .field-shell input:-webkit-autofill,
:root:not([data-theme="dark"]) .field-shell input:-webkit-autofill:hover,
:root:not([data-theme="dark"]) .field-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #153b53;
  -webkit-box-shadow: 0 0 0 1000px #f4fbfe inset;
}

:root:not([data-theme="dark"]) .password-toggle {
  color: rgba(35, 88, 117, .53);
}

:root:not([data-theme="dark"]) .password-toggle:hover {
  color: #0b587a;
  background: rgba(35, 122, 158, .07);
}

:root:not([data-theme="dark"]) .demo-hint {
  color: rgba(42, 83, 106, .62);
}

:root:not([data-theme="dark"]) .demo-hint svg {
  stroke: #1689ae;
}

:root:not([data-theme="dark"]) .divider {
  color: rgba(49, 89, 111, .5);
}

:root:not([data-theme="dark"]) .divider::before {
  background: linear-gradient(90deg, transparent, rgba(45, 107, 139, .18));
}

:root:not([data-theme="dark"]) .divider::after {
  background: linear-gradient(90deg, rgba(45, 107, 139, .18), transparent);
}

:root:not([data-theme="dark"]) .google-button {
  border-color: rgba(42, 107, 141, .2);
  color: #315267;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px rgba(255, 255, 255, .65), 0 6px 16px rgba(46, 106, 137, .035);
}

:root:not([data-theme="dark"]) .google-button:hover {
  border-color: rgba(24, 119, 160, .31);
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 10px 24px rgba(38, 102, 135, .09), inset 0 1px rgba(255, 255, 255, .75);
}

:root:not([data-theme="dark"]) .form-footer {
  color: rgba(41, 77, 99, .52);
}

:root:not([data-theme="dark"]) .form-footer a:hover {
  color: #086d93;
}

:root[data-theme="dark"] .page-footer {
  color: color-mix(in srgb, var(--color-text-muted) 62%, transparent);
}

.form-heading__eyebrow,
.form-heading h1,
.form-heading p,
.field-group label,
.demo-hint,
.divider,
.form-footer {
  transition: color .45s ease;
}

/* Branded transition ------------------------------------------------------ */
.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

.transition-overlay.is-active {
  visibility: visible;
  pointer-events: auto;
}

.transition-overlay__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% + 1px);
  background:
    radial-gradient(circle at 50% 48%, rgba(74, 75, 176, .055), transparent 31%),
    var(--dark-surface, #02040a);
  transition: transform .9s var(--ease-smooth);
  will-change: transform;
}

.transition-overlay__panel--left {
  left: 0;
  transform: translateX(-101%);
}

.transition-overlay__panel--right {
  right: 0;
  transform: translateX(101%);
}

.transition-overlay.is-covered .transition-overlay__panel {
  transform: translateX(0);
}

.transition-overlay.is-revealing .transition-overlay__panel--left {
  transform: translateX(-101%);
}

.transition-overlay.is-revealing .transition-overlay__panel--right {
  transform: translateX(101%);
}

.transition-overlay__aurora {
  position: absolute;
  z-index: 1;
  width: min(55vw, 740px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(from 30deg, rgba(80, 212, 255, .22), rgba(108, 76, 247, .22), rgba(235, 79, 211, .13), rgba(80, 212, 255, .22));
  filter: blur(110px);
  transform: scale(.55) rotate(0);
  transition: opacity .55s ease .22s, transform 1.6s var(--ease-out);
}

.transition-overlay.is-covered .transition-overlay__aurora {
  opacity: .25;
  transform: scale(1) rotate(25deg);
}

.transition-overlay.is-revealing .transition-overlay__aurora {
  opacity: 0;
  transform: scale(1.2) rotate(42deg);
  transition-delay: 0s;
}

.transition-overlay__content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  row-gap: 22px;
  opacity: 0;
  transform: translateY(12px) scale(.94);
  transition: opacity .45s ease, transform .75s var(--ease-out);
}

.transition-overlay.is-covered .transition-overlay__content {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: .32s;
}

.transition-overlay.is-revealing .transition-overlay__content {
  opacity: 0;
  transform: translateY(-9px) scale(1.035);
  transition-delay: 0s;
  transition-duration: .3s;
}

.loading-logo {
  display: block;
  width: min(176px, 42vw);
  aspect-ratio: 1;
  overflow: visible;
}

.logo-stroke {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.logo-shadow {
  stroke: rgba(115, 119, 158, .1);
  stroke-width: 2.6;
  filter: blur(.25px);
}

.logo-outline {
  stroke: rgba(196, 198, 232, .27);
  stroke-width: 1.05;
}

.sweep-glow {
  stroke: url(#sweep-gradient);
  stroke-width: 5;
  opacity: .48;
  filter: url(#logo-glow);
}

.sweep-core {
  stroke: url(#sweep-gradient);
  stroke-width: 1.35;
}

.transition-overlay.is-success .logo-outline {
  stroke: rgba(105, 231, 174, .5);
  transition: stroke .4s ease;
}

.transition-copy {
  display: grid;
  justify-items: center;
  width: min(300px, 72vw);
  margin-top: 0;
  text-align: center;
}

.transition-copy h2 {
  margin: 0 0 18px;
  color: rgba(235, 246, 252, .7);
  font-size: .86rem;
  font-weight: 480;
  letter-spacing: 0;
  line-height: 1.4;
}

.transition-progress {
  width: 112px;
  height: 1px;
  overflow: hidden;
  background: rgba(156, 207, 225, .12);
}

.transition-progress span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan-300), var(--violet-400), transparent);
  animation: progress-slide 1.35s ease-in-out infinite;
}

.transition-overlay.is-success .transition-progress span {
  width: 100%;
  background: var(--success);
  animation: none;
}

/* Toast ------------------------------------------------------------------- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(157, 232, 204, .2);
  border-radius: 14px;
  color: rgba(235, 252, 245, .85);
  background: rgba(8, 28, 28, .82);
  box-shadow: 0 18px 45px rgba(0, 5, 12, .4), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(20px);
  font-size: .73rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.97);
  transition: opacity .3s ease, transform .45s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast__icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--success);
  background: rgba(108, 230, 172, .1);
}

.toast__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Motion ------------------------------------------------------------------ */
@keyframes stars-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-4%, 3%, 0); }
}

@keyframes auth-view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stars-pulse {
  from { filter: brightness(.82); transform: scale(1); }
  to { filter: brightness(1.18); transform: scale(1.008); }
}

@keyframes shooting-star {
  0%, 78% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-32deg) scaleX(.35); }
  80% { opacity: .9; }
  86% { opacity: 0; transform: translate3d(-190px, 118px, 0) rotate(-32deg) scaleX(1); }
  100% { opacity: 0; }
}

@keyframes sun-breathe {
  from { opacity: .72; transform: scale(.94); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes cloud-drift-right {
  from { transform: translate3d(-160%, 0, 0) scale(var(--cloud-scale)); }
  to { transform: translate3d(calc(100vw + 160%), 0, 0) scale(var(--cloud-scale)); }
}

@keyframes cloud-drift-left {
  from { transform: translate3d(calc(100vw + 160%), 0, 0) scale(var(--cloud-scale)); }
  to { transform: translate3d(-160%, 0, 0) scale(var(--cloud-scale)); }
}


@keyframes orbit-rock {
  from { transform: translate(-50%, -50%) rotate(-24deg); }
  to { transform: translate(-50%, -50%) rotate(-11deg); }
}

@keyframes orbit-rock-two {
  from { transform: translate(-50%, -50%) rotate(34deg); }
  to { transform: translate(-50%, -50%) rotate(45deg); }
}

@keyframes badge-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(5deg) translateY(2px); }
  50% { transform: translate(-50%, -50%) rotate(7deg) translateY(-9px); }
}

@keyframes scan-pass {
  0%, 14% { opacity: 0; transform: translateY(0); }
  24% { opacity: 1; }
  67% { opacity: .8; transform: translateY(188px); }
  78%, 100% { opacity: 0; transform: translateY(205px); }
}

@keyframes card-shine {
  0%, 62% { left: -80%; }
  82%, 100% { left: 140%; }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .page-main {
    align-items: start;
    padding-top: 92px;
    padding-bottom: 72px;
  }

  .auth-card {
    grid-template-columns: minmax(0, .82fr) minmax(410px, 1.18fr);
    min-height: 650px;
  }

  .hero-copy {
    padding-inline: 28px;
  }

  .hero-copy h2 {
    font-size: 1.95rem;
  }

  .form-panel {
    padding-inline: 38px;
  }
}

@media (max-width: 760px) {
  :root {
    --card-radius: 25px;
  }

  body {
    overflow-y: auto;
  }

  .topbar {
    padding: 18px 20px;
  }

  .theme-toggle__label {
    display: none;
  }

  .theme-toggle {
    min-height: 40px;
    padding: 4px;
  }

  .sky-cloud {
    width: min(980px, 150vw);
  }

  .page-main {
    display: block;
    min-height: auto;
    padding: 72px 14px 76px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: min(100%, 560px);
    height: auto;
    min-height: 0;
    margin: 0 auto;
  }

  .hero-panel {
    min-height: 236px;
    margin-bottom: 0;
  }

  .hero-art {
    top: -13%;
    left: 70%;
    width: 270px;
  }

  .hero-orbit,
  .floating-chip {
    display: none;
  }

  .event-pass {
    width: 138px;
    height: 184px;
    transform: translate(-50%, -50%) rotate(9deg) scale(.9);
  }

  .scan-line {
    left: 39%;
    width: 50%;
  }

  .hero-copy {
    padding: 30px 26px;
  }

  .hero-copy__eyebrow {
    margin-bottom: 10px;
    font-size: .58rem;
  }

  .hero-copy h2 {
    max-width: 300px;
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .hero-copy p {
    max-width: 280px;
    margin-top: 10px;
    font-size: .75rem;
  }

  .hero-panel__dots {
    right: 23px;
    bottom: 27px;
  }

  .form-panel {
    padding: 40px 25px 32px;
  }

  .form-panel__inner {
    width: 100%;
  }

  .form-heading {
    margin-bottom: 27px;
  }

  .form-heading h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .page-footer {
    position: relative;
    z-index: 7;
    margin-top: -59px;
    padding-bottom: 20px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 430px) {
  .wordmark {
    font-size: .84rem;
  }

  .hero-panel {
    min-height: 208px;
  }

  .hero-copy p,
  .hero-panel__dots {
    display: none;
  }

  .hero-copy h2 {
    max-width: 245px;
    font-size: 1.55rem;
  }

  .hero-art {
    left: 77%;
    opacity: .67;
  }

  .form-panel {
    padding-inline: 20px;
  }

  .field-label-row {
    gap: 8px;
  }

}

@media (max-height: 760px) and (min-width: 761px) {
  .page-main {
    align-items: start;
    padding-top: 74px;
    padding-bottom: 64px;
  }

  .auth-card {
    min-height: 610px;
  }

  .form-panel {
    padding-block: 34px;
  }

  .form-heading {
    margin-bottom: 23px;
  }

  .form-heading h1 {
    font-size: 2.15rem;
  }

  .login-form {
    gap: 14px;
  }

  .hero-art {
    top: 4%;
    transform: translateX(-50%) scale(.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .sweep-glow,
  .sweep-core {
    display: none;
  }

  .sky-scene__sun {
    animation: none !important;
  }

  .sky-cloud {
    animation: none !important;
  }

  .star-field {
    animation: none !important;
  }

  .shooting-star {
    display: none;
  }

  .sky-cloud--one { left: 4%; transform: scale(.78); }
  .sky-cloud--two { left: 52%; transform: scale(1.06); }
  .sky-cloud--three { left: 24%; transform: scale(1.22); }
}
