:root {
  color-scheme: dark;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #eff3ff;
  background: #080e21;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: #a6eaff;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.auth-page {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 25% 45%, #12234688, transparent 65%), #080e21;
}
#neon-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.aurora {
  position: fixed;
  width: 65vw;
  height: 60vh;
  top: -25vh;
  left: 20%;
  border-radius: 50%;
  background: #7859fa22;
  filter: blur(90px);
  animation: aurora 17s ease-in-out infinite alternate;
  pointer-events: none;
}
.auth-header,
.auth-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 5vw;
  gap: 20px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 25px;
  font-weight: 750;
}
.auth-brand img {
  width: 39px;
}
.auth-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  color: #aab9d8;
  margin-top: 4px;
}
.quiet {
  border: 1px solid #3c4b68;
  background: #111d33b0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #d8e6ff;
  font-size: 12px;
}
.quiet:hover {
  background: #253650;
}
.auth-layout {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 7%;
  align-items: center;
  padding: 30px 5vw 55px;
}
.auth-story {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 620px;
  padding-top: 25px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #a5b9da;
  line-height: 1.7;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #72f5db;
  box-shadow: 0 0 15px #72f5db;
  margin-right: 7px;
  animation: pulse 3s ease-in-out infinite;
}
.auth-story h1 {
  font-size: clamp(40px, 4.3vw, 66px);
  line-height: 1.09;
  letter-spacing: -2.7px;
  margin: 27px 0 22px;
  font-weight: 720;
}
.auth-story h1 span {
  background: linear-gradient(110deg, #99f6e6, #9ba8ff 65%, #e0a0ff);
  background-clip: text;
  color: transparent;
}
.auth-story > p {
  color: #b8c7df;
  font-size: 16px;
  line-height: 1.8;
}
.orbit-label {
  margin-top: auto;
  padding-top: 190px;
  font: 10px monospace;
  letter-spacing: 3px;
  color: #8ea8c8;
}
.orbit-label span {
  color: #66efcf;
  margin: 0 10px;
  animation: pulse 2s infinite;
}
.story-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  color: #9bb2d4;
  margin-top: 28px;
}
.auth-card {
  position: relative;
  padding: 40px;
  border: 1px solid #6f82b750;
  border-radius: 27px;
  background: linear-gradient(135deg, #1b2945ed, #111b31f5);
  box-shadow:
    0 28px 100px #0007,
    inset 0 1px #b8ccff1a;
  backdrop-filter: blur(24px);
  animation: card-enter 0.9s ease-out both;
  max-width: 490px;
  width: 100%;
  justify-self: end;
}
.auth-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 27px;
  pointer-events: none;
  box-shadow: 0 0 40px #7288ff16;
  animation: halo 7s ease-in-out infinite;
}
.card-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 38px;
  border: 1px solid #879eff70;
  color: #b7bcff;
  border-radius: 14px;
  background: #7166d62b;
  margin-bottom: 27px;
  animation: mark-float 5s ease-in-out infinite;
}
.auth-card h2 {
  font-size: 29px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin: 10px 0 12px;
}
.muted {
  color: #b6c5dd;
  font-size: 14px;
  line-height: 1.65;
}
.auth-card label,
.admin-shell label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 23px 0 9px;
  color: #d7e2f8;
}
.auth-card input,
.admin-shell input,
.admin-shell select {
  display: block;
  width: 100%;
  background: #0c1529;
  border: 1px solid #40516f;
  border-radius: 10px;
  padding: 14px;
  color: #f1f5ff;
  min-width: 0;
}
.auth-card input:focus,
.admin-shell input:focus,
.admin-shell select:focus {
  border-color: #a59bff;
  outline: 2px solid #a59bff40;
}
.auth-card input::placeholder {
  color: #8195b6;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 85px;
}
.reveal {
  position: absolute;
  right: 8px;
  top: 9px;
  border: 0;
  background: transparent;
  padding: 8px;
  color: #b5c8ee;
  font-size: 11px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 11px;
  color: white;
  font-weight: 650;
  border: 1px solid #a098ff99;
  background: linear-gradient(115deg, #7660df, #546bd5);
  box-shadow: 0 6px 25px #7158df33;
  margin-top: 28px;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.primary:hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
}
.primary span {
  font-size: 22px;
}
.access-note {
  border-top: 1px solid #91a4d024;
  padding-top: 24px;
  margin-top: 29px;
  display: flex;
  gap: 12px;
  color: #a9bbd8;
  font-size: 11px;
  line-height: 1.7;
}
.access-note > span {
  font-size: 24px;
  color: #88a8d5;
}
.access-note p {
  margin: 0;
}
.access-note strong {
  font-weight: 550;
  color: #c7d5ed;
}
.field-help {
  font-size: 11px;
  color: #adc0df;
  line-height: 1.5;
}
.message {
  border: 1px solid #ffaaa766;
  border-radius: 9px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #ffcfcd;
  background: #602c392b;
}
.message.success {
  color: #abf1db;
  border-color: #71d3b866;
  background: #1f5a452b;
}
.account-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-size: 12px;
}
.auth-footer {
  padding-top: 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9aadcd;
}
.paused *,
.paused *:before {
  animation-play-state: paused !important;
}
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}
.admin-shell h1 {
  font-size: 35px;
  letter-spacing: -1px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
}
.panel {
  background: #15223a;
  border: 1px solid #3a4a67;
  border-radius: 18px;
  padding: 25px;
}
.panel h2 {
  font-size: 19px;
  margin-top: 0;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-toolbar input {
  max-width: 360px;
}
.user-list {
  display: grid;
  gap: 12px;
}
.user-card {
  border: 1px solid #41516e;
  border-radius: 12px;
  padding: 18px;
  background: #0e192d;
}
.user-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.user-card strong {
  overflow-wrap: anywhere;
}
.tag {
  font-size: 10px;
  border: 1px solid #687bb3;
  border-radius: 20px;
  padding: 5px 9px;
  color: #c3d4ff;
  white-space: nowrap;
}
.user-card p {
  color: #a9bddb;
  font-size: 12px;
  line-height: 1.6;
}
.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.user-actions button {
  font-size: 11px;
}
.danger {
  color: #ffc5c5;
  border-color: #a45a65;
}
.admin-shell dialog {
  width: min(500px, 94vw);
  border: 1px solid #63749a;
  border-radius: 18px;
  padding: 28px;
  background: #17243d;
  color: #f0f4ff;
}
.admin-shell dialog::backdrop {
  background: #020815bb;
  backdrop-filter: blur(6px);
}
.dialog-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.dialog-actions .primary {
  margin: 0;
}
.admin-shell .empty {
  padding: 25px;
  color: #c3cee2;
}
.auth-header a:not(.auth-brand) {
  font-size: 13px;
}
.admin-hint {
  font-size: 12px;
  line-height: 1.7;
  color: #bdcee8;
}
@keyframes aurora {
  to {
    transform: translate(25%, 25%) scale(1.4);
    opacity: 0.5;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    box-shadow: 0 0 3px #72f5db;
  }
}
@keyframes halo {
  50% {
    box-shadow: 0 0 70px #738aff36;
  }
}
@keyframes mark-float {
  50% {
    transform: translateY(-5px) rotate(6deg);
  }
}
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .auth-layout {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    padding: 20px 4vw;
  }
  .auth-story h1 {
    font-size: 43px;
  }
  .auth-card {
    padding: 28px;
  }
  .auth-story {
    min-height: 590px;
  }
  .auth-story > p {
    font-size: 14px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    padding: 20px;
  }
}
@media (max-width: 650px) {
  .auth-header {
    padding: 24px;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
    padding: 0 22px 35px;
    gap: 22px;
  }
  .auth-story {
    min-height: 0;
    padding: 8px 0;
    width: 100%;
  }
  .auth-story h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
    margin: 15px 0;
  }
  .auth-story h1 br:nth-of-type(1) {
    display: initial;
  }
  .auth-story > p,
  .orbit-label,
  .story-footer {
    display: none;
  }
  .auth-story .eyebrow {
    font-size: 9px;
  }
  .auth-card {
    max-width: none;
    padding: 27px;
  }
  .card-mark {
    display: none;
  }
  .auth-card h2 {
    font-size: 26px;
  }
  .auth-footer {
    padding: 10px 24px 25px;
    line-height: 1.7;
  }
  .auth-header .quiet {
    font-size: 10px;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-shell h1 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
  }
}
.entering .auth-card {
  animation: portal-card-out 0.6s ease-in forwards;
}
.entering .auth-story,
.entering .auth-header,
.entering .auth-footer {
  animation: portal-copy-out 0.55s ease-in forwards;
}
.entering #neon-scene {
  z-index: 3;
}
.portal-status {
  position: fixed;
  z-index: 4;
  top: 72%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #d9f1ff;
  font-size: 13px;
  letter-spacing: 3px;
  animation: portal-status-in 1.2s ease both;
}
.entering:after {
  content: none;
}
@keyframes portal-card-out {
  to {
    opacity: 0;
    transform: translateX(60px) scale(0.94);
    filter: blur(8px);
  }
}
@keyframes portal-copy-out {
  to {
    opacity: 0;
    transform: translateY(-18px);
    filter: blur(4px);
  }
}
@keyframes portal-status-in {
  0%,
  15% {
    opacity: 0;
    transform: translateY(15px);
  }
  45%,
  80% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
