:root {
  --conson-ink: #050914;
  --conson-paper: #f3f6fb;
  --conson-blue: #a9c9f4;
  --conson-copper: #c89b70;
  --conson-line: rgba(184, 210, 239, 0.2);
}

body:has(.conson-login-shell) {
  overflow: hidden;
  background: var(--conson-ink);
}

body:has(.conson-login-shell) #navbar,
body:has(.conson-login-shell) footer {
  display: none !important;
}

.page-content.user.signin.conson-login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  margin: 0;
  padding: clamp(28px, 4vw, 64px);
  overflow: hidden;
  color: var(--conson-paper);
  background: #050914;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.conson-cosmos,
.conson-cosmos::before,
.conson-cosmos::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.conson-cosmos {
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 7, 16, 0.96) 0%, rgba(4, 8, 18, 0.82) 34%, rgba(4, 8, 18, 0.12) 70%, rgba(2, 5, 12, 0.24) 100%),
    url("../img/conson-saturn-hero.jpg") 62% center / cover no-repeat;
}

.conson-cosmos::before {
  content: "";
  inset: -3%;
  background: url("../img/conson-saturn-hero.jpg") 62% center / cover no-repeat;
  opacity: 0.13;
  mix-blend-mode: screen;
  animation: conson-planet-drift 24s ease-in-out infinite alternate;
}

.conson-cosmos::after {
  content: "";
  background:
    radial-gradient(circle at 68% 18%, rgba(120, 170, 229, 0.15), transparent 27%),
    radial-gradient(circle at 49% 78%, rgba(200, 155, 112, 0.08), transparent 23%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(2, 5, 12, 0.48));
}

.conson-stars {
  position: absolute;
  inset: -30%;
  background-repeat: repeat;
  transform: rotate(-4deg);
}

.conson-stars--near {
  opacity: 0.66;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(174,211,255,.8) 0 1px, transparent 1.5px);
  background-position: 0 0, 43px 61px;
  background-size: 137px 137px, 191px 191px;
  animation: conson-star-drift 110s linear infinite;
}

.conson-stars--far {
  opacity: 0.32;
  background-image: radial-gradient(circle, rgba(255,255,255,.8) 0 .7px, transparent 1px);
  background-size: 73px 73px;
  background-position: 17px 31px;
  animation: conson-star-drift 170s linear infinite reverse;
}

.conson-comet {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 72%;
  width: clamp(180px, 24vw, 420px);
  height: 2px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(132, 183, 238, 0.06) 28%, rgba(205, 228, 255, 0.72) 92%, #fff);
  filter: drop-shadow(0 0 7px rgba(173, 212, 255, 0.72));
  transform: rotate(-27deg) translate3d(-120vw, -20vh, 0);
  transform-origin: right center;
  animation: conson-comet-flight 28s 6s cubic-bezier(.2, .58, .25, 1) infinite;
}

.conson-comet::before {
  content: "";
  position: absolute;
  right: 0;
  top: -18px;
  width: 100%;
  height: 38px;
  background: linear-gradient(90deg, transparent 10%, rgba(105, 167, 232, 0.025), rgba(178, 215, 255, 0.12));
  clip-path: polygon(0 46%, 100% 0, 100% 100%);
  filter: blur(8px);
}

.conson-comet__head {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 9px 2px rgba(202, 228, 255, 0.92), 0 0 28px 8px rgba(96, 163, 234, 0.38);
}

.conson-orbit {
  position: absolute;
  width: min(72vw, 1100px);
  aspect-ratio: 2.5 / 1;
  right: -15vw;
  top: 44%;
  border: 1px solid rgba(183, 211, 245, 0.14);
  border-radius: 50%;
  transform: rotate(-17deg);
  box-shadow: inset 0 0 50px rgba(133, 180, 234, 0.035);
  animation: conson-orbit-breathe 12s ease-in-out infinite alternate;
}

.conson-orbit--two {
  width: min(88vw, 1380px);
  right: -24vw;
  top: 40%;
  opacity: 0.45;
  animation-delay: -5s;
}

.conson-login-layout {
  width: min(100%, 1320px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(60px, 11vw, 180px);
}

.conson-brand {
  align-self: center;
  max-width: 650px;
  padding-left: clamp(0px, 3vw, 44px);
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.48);
  animation: conson-enter 900ms cubic-bezier(.16, 1, .3, 1) both;
}

.conson-mark {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 42px;
}

.conson-mark__planet {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(231, 240, 252, 0.76);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(225,239,255,.72), rgba(105,143,190,.22) 34%, rgba(5,9,20,.72) 72%);
  box-shadow: 0 0 30px rgba(159, 202, 250, 0.18);
}

.conson-mark__ring {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 12px;
  border: 1px solid rgba(213, 227, 246, 0.68);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.conson-kicker,
.conson-auth__index,
.conson-auth__status,
.conson-coordinate,
.conson-footerline {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.conson-kicker {
  margin: 0 0 12px;
  color: var(--conson-blue);
  font-size: 11px;
}

.conson-brand h1 {
  margin: 0;
  color: #f5f8fc;
  font-family: "Bodoni 72", Didot, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(76px, 9.6vw, 152px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.conson-manifesto {
  margin: 38px 0 42px;
  color: rgba(234, 241, 250, 0.8);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.conson-coordinate {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(198, 216, 237, 0.62);
  font-size: 9px;
}

.conson-coordinate__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ac5a7;
  box-shadow: 0 0 0 0 rgba(138, 197, 167, 0.48);
  animation: conson-pulse 2.4s ease-out infinite;
}

.conson-auth {
  position: relative;
  width: 100%;
  padding: 22px 28px 24px;
  overflow: hidden;
  border: 1px solid rgba(194, 216, 243, 0.2);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(10, 17, 32, 0.84), rgba(5, 9, 20, 0.66));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(22px) saturate(120%);
  animation: conson-enter 1600ms 240ms cubic-bezier(.16, 1, .3, 1) both;
}

.conson-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 46%, rgba(169, 201, 244, 0.055) 50%, transparent 54% 100%);
  transform: translateX(-100%);
  animation: conson-scan 8s 2s ease-in-out infinite;
}

.conson-auth__edge {
  position: absolute;
  top: -1px;
  left: 28px;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--conson-copper), transparent);
  box-shadow: 0 0 18px rgba(200, 155, 112, 0.4);
}

.conson-auth__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  color: rgba(185, 208, 236, 0.6);
  font-size: 8px;
  animation: conson-control-reveal 1300ms 750ms cubic-bezier(.16, 1, .3, 1) both;
}

.conson-auth__status::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #8ac5a7;
}

.conson-auth .ui.container,
.conson-auth .ui.attached.segment,
.conson-auth .ui.top.attached.header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.conson-auth .ui.top.attached.header {
  padding: 0 0 24px !important;
  color: #f3f6fb !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 30px !important;
  font-weight: 520 !important;
  letter-spacing: -0.035em;
  text-align: left !important;
}

.conson-auth .ui.attached.segment {
  padding: 0 !important;
}

.conson-auth .ui.form .field {
  margin-bottom: 18px;
  animation: conson-control-reveal 1400ms cubic-bezier(.16, 1, .3, 1) both;
}

.conson-auth .ui.form .field:nth-child(1) { animation-delay: 1050ms; }
.conson-auth .ui.form .field:nth-child(2) { animation-delay: 1230ms; }
.conson-auth .ui.form .field:nth-child(3) { animation-delay: 1410ms; }
.conson-auth .ui.form .field:nth-child(4) { animation-delay: 1590ms; }

.conson-auth .ui.form .field > label,
.conson-auth .ui.checkbox label {
  color: rgba(202, 218, 237, 0.72) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.045em;
}

.conson-auth .ui.form input[type="text"],
.conson-auth .ui.form input[type="password"] {
  height: 48px;
  border: 1px solid rgba(184, 207, 234, 0.22) !important;
  border-radius: 2px !important;
  color: #f4f7fb !important;
  background: rgba(2, 6, 14, 0.54) !important;
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.22) !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.conson-auth .ui.form input:focus {
  border-color: rgba(169, 201, 244, 0.72) !important;
  background: rgba(4, 9, 19, 0.82) !important;
  box-shadow: 0 0 0 3px rgba(123, 166, 218, 0.12) !important;
}

.conson-auth .ui.primary.button {
  height: 49px;
  margin-top: 4px;
  border: 1px solid rgba(229, 238, 249, 0.38) !important;
  border-radius: 2px !important;
  color: #07101e !important;
  background: linear-gradient(105deg, #d8e6f7, #93b6dd) !important;
  box-shadow: 0 12px 36px rgba(80, 128, 181, 0.2) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.conson-auth .ui.primary.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(80, 128, 181, 0.3) !important;
}

.conson-auth a {
  color: #a9c9f4 !important;
}

.conson-auth .ui.container + .ui.container {
  margin-top: 14px !important;
  animation: conson-control-reveal 1300ms 1750ms cubic-bezier(.16, 1, .3, 1) both;
}

.conson-auth .ui.attached.segment.header.top {
  align-items: flex-start !important;
  padding-top: 8px !important;
  color: rgba(190, 209, 232, 0.7) !important;
  font-family: inherit !important;
  font-size: 12px !important;
}

.conson-auth__note {
  margin: 22px 0 0;
  padding-top: 17px;
  border-top: 1px solid rgba(184, 210, 239, 0.12);
  color: rgba(181, 202, 227, 0.48);
  font-size: 10px;
  letter-spacing: 0.035em;
  text-align: center;
  animation: conson-control-reveal 1300ms 1950ms cubic-bezier(.16, 1, .3, 1) both;
}

.conson-footerline {
  position: absolute;
  right: clamp(28px, 4vw, 64px);
  bottom: 22px;
  left: clamp(28px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  color: rgba(175, 198, 225, 0.38);
  font-size: 8px;
}

@keyframes conson-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes conson-control-reveal {
  from { opacity: 0; transform: translateY(15px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes conson-planet-drift {
  from { transform: scale(1.01) translate3d(-0.4%, 0, 0); }
  to { transform: scale(1.055) translate3d(0.8%, -0.8%, 0); }
}

@keyframes conson-star-drift {
  from { transform: rotate(-4deg) translate3d(0, 0, 0); }
  to { transform: rotate(-4deg) translate3d(90px, 45px, 0); }
}

@keyframes conson-comet-flight {
  0%, 7% { opacity: 0; transform: rotate(-27deg) translate3d(-105vw, -22vh, 0); }
  9% { opacity: 0.95; }
  18% { opacity: 0.9; }
  24%, 100% { opacity: 0; transform: rotate(-27deg) translate3d(72vw, 58vh, 0); }
}

@keyframes conson-orbit-breathe {
  from { transform: rotate(-17deg) scale(0.985); opacity: 0.28; }
  to { transform: rotate(-17deg) scale(1.025); opacity: 0.62; }
}

@keyframes conson-pulse {
  0% { box-shadow: 0 0 0 0 rgba(138, 197, 167, 0.48); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(138, 197, 167, 0); }
}

@keyframes conson-scan {
  0%, 62% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

@media (max-width: 860px) {
  .page-content.user.signin.conson-login-shell {
    padding: 24px;
    overflow: auto;
  }

  .conson-cosmos {
    background-position: 64% center;
  }

  .conson-login-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(100%, 480px);
    padding: 42px 0 58px;
  }

  .conson-brand {
    padding-left: 0;
  }

  .conson-mark {
    margin-bottom: 24px;
  }

  .conson-brand h1 {
    font-size: clamp(70px, 22vw, 104px);
  }

  .conson-manifesto {
    margin: 24px 0 26px;
    font-size: 20px;
  }

  .conson-footerline {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-content.user.signin.conson-login-shell {
    padding: 16px;
  }

  .conson-login-layout {
    padding-top: 20px;
    gap: 28px;
  }

  .conson-mark,
  .conson-manifesto br,
  .conson-coordinate {
    display: none;
  }

  .conson-manifesto {
    margin-bottom: 0;
  }

  .conson-auth {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conson-cosmos::before,
  .conson-stars,
  .conson-orbit,
  .conson-coordinate__pulse,
  .conson-auth::before,
  .conson-comet,
  .conson-brand,
  .conson-auth {
    animation: none !important;
  }
}
