.login-page {
  min-height: 100vh;
  height: 100vh;
  color: #e5f5ff;
  background: #020817;
  overflow: hidden;
}

.login-command {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(720px, 1fr) minmax(420px, 560px);
  grid-template-rows: 1fr auto;
  gap: 24px;
  padding: 28px 34px 18px;
  background:
    radial-gradient(circle at 42% 43%, rgba(14, 165, 233, 0.26), transparent 26%),
    radial-gradient(circle at 72% 28%, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(115deg, #020817 0%, #061227 52%, #020817 100%);
  overflow: hidden;
}

.login-command::before,
.login-command::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-command::before {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.55;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.26) 78%, transparent 100%);
}

.login-command::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(96, 165, 250, 0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 54%, rgba(56, 189, 248, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 36%, rgba(125, 211, 252, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.24) 0 2px, transparent 3px);
}

.login-hero,
.login-console,
.login-footer {
  position: relative;
  z-index: 1;
}

.login-hero {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
}

.login-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.login-headline h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.45);
}

.login-headline p {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
  letter-spacing: 4px;
}

.ledger-panel {
  position: absolute;
  left: 0;
  top: 180px;
  width: 430px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(8, 21, 44, 0.64);
  padding: 16px 18px 18px;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.14);
}

.ledger-panel h2 {
  margin: 0 0 10px;
  color: #dff7ff;
  font-size: 18px;
}

.ledger-panel table {
  width: 100%;
  border-collapse: collapse;
  color: #93c5fd;
  font-size: 12px;
}

.ledger-panel th,
.ledger-panel td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
  text-align: left;
}

.ledger-panel th {
  color: #67e8f9;
  font-weight: 800;
}

.training-chain {
  position: relative;
  min-height: 500px;
  margin: 88px 120px 0 360px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.chain-hub {
  position: absolute;
  left: 45%;
  top: 47%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.95), rgba(186, 230, 253, 0.42) 10%, transparent 22%),
    radial-gradient(circle at 52% 48%, rgba(14, 165, 233, 0.86), rgba(30, 64, 175, 0.58) 43%, rgba(2, 8, 23, 0.96) 76%);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    inset -34px -42px 58px rgba(0, 0, 0, 0.78),
    inset 24px 22px 42px rgba(186, 230, 253, 0.28),
    0 0 38px rgba(56, 189, 248, 0.86),
    0 0 110px rgba(37, 99, 235, 0.48);
  z-index: 5;
}

.chain-hub span {
  position: relative;
  z-index: 10;
  text-shadow: 0 0 14px rgba(186, 230, 253, 0.85);
}

.sphere-volume {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: sphere-horizontal-yaw 18s ease-in-out infinite;
  will-change: transform;
}

.sphere-glow,
.sphere-surface,
.sphere-latitudes,
.sphere-depth,
.sphere-wire,
.sphere-shadow,
.sphere-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.sphere-glow {
  z-index: 1;
  background:
    radial-gradient(circle at 32% 23%, rgba(240, 249, 255, 0.92), transparent 12%),
    radial-gradient(circle at 42% 38%, rgba(125, 211, 252, 0.52), transparent 30%),
    radial-gradient(circle at 62% 62%, rgba(14, 165, 233, 0.44), transparent 44%),
    radial-gradient(circle at 74% 78%, rgba(2, 8, 23, 0.96), transparent 64%);
  mix-blend-mode: screen;
  animation: sphere-body-shade 24s ease-in-out infinite;
}

.sphere-surface {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 8, 23, 0.42), transparent 22%, rgba(125, 211, 252, 0.22) 46%, transparent 67%, rgba(2, 8, 23, 0.72)),
    repeating-linear-gradient(96deg, transparent 0 15px, rgba(125, 211, 252, 0.18) 16px 18px, transparent 19px 34px);
  background-size: 220% 100%, 170% 170%;
  background-position: 0 0, 0 0, 0 0;
  animation: sphere-surface-slide 42s linear infinite;
  opacity: 0.5;
  mask-image: radial-gradient(circle at center, #000 0 68%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  mix-blend-mode: screen;
}

.sphere-latitudes {
  z-index: 4;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 13px, rgba(186, 230, 253, 0.36) 14px 15px, transparent 16px 27px),
    linear-gradient(90deg, transparent 0 46%, rgba(186, 230, 253, 0.28) 49%, transparent 52%),
    linear-gradient(0deg, transparent 0 46%, rgba(186, 230, 253, 0.24) 49%, transparent 52%);
  transform: rotateX(64deg) rotateZ(0deg) scale(1.08);
  opacity: 0.44;
}

.sphere-depth {
  inset: 12px 34px;
  z-index: 5;
  border: 1px solid rgba(186, 230, 253, 0.34);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
  transform-style: preserve-3d;
  opacity: 0.55;
}

.depth-a {
  transform: scaleX(0.86);
}

.depth-b {
  transform: translateX(-34px) scaleX(0.42);
}

.depth-c {
  transform: translateX(34px) scaleX(0.42);
}

.depth-d {
  transform: translateX(-58px) scaleX(0.2);
  opacity: 0.24;
}

.depth-e {
  transform: translateX(58px) scaleX(0.2);
  opacity: 0.24;
}

.sphere-wire {
  inset: 16px 4px;
  z-index: 6;
  border: 2px solid rgba(186, 230, 253, 0.58);
  box-shadow:
    0 0 14px rgba(56, 189, 248, 0.5),
    inset 0 0 14px rgba(56, 189, 248, 0.2);
  transform-style: preserve-3d;
  backface-visibility: visible;
  opacity: 0.72;
}

.wire-equator {
  transform: rotateX(74deg);
}

.sphere-shadow {
  z-index: 7;
  background:
    radial-gradient(circle at 28% 24%, transparent 0 27%, rgba(2, 8, 23, 0.06) 38%, rgba(2, 8, 23, 0.62) 78%),
    linear-gradient(90deg, rgba(2, 8, 23, 0.64), transparent 38%, transparent 58%, rgba(2, 8, 23, 0.8));
  mix-blend-mode: multiply;
}

.sphere-highlight {
  z-index: 8;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.78), rgba(186, 230, 253, 0.32) 11%, transparent 25%),
    linear-gradient(105deg, transparent 0 22%, rgba(186, 230, 253, 0.2) 35%, transparent 48%);
  opacity: 0.86;
  mix-blend-mode: screen;
  animation: sphere-highlight-drift 24s ease-in-out infinite;
}

.chain-hub::before,
.chain-hub::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 50%;
}

.chain-hub::before {
  inset: -28px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(125, 211, 252, 0.35) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(125, 211, 252, 0.24) 50%, transparent 51%);
  box-shadow: inset 0 0 26px rgba(56, 189, 248, 0.16);
  z-index: -1;
}

.chain-hub::after {
  inset: -58px;
  border-style: dashed;
  animation: login-spin 12s linear infinite;
  z-index: -2;
}

.chain-orbit3d {
  position: absolute;
  left: 45%;
  top: 47%;
  width: 740px;
  height: 460px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(58deg);
  z-index: 6;
}

.chain-orbit3d::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 700px;
  height: 300px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(56, 189, 248, 0.28),
    inset 0 0 34px rgba(56, 189, 248, 0.14);
}

.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  min-height: 92px;
  margin-left: -95px;
  margin-top: -46px;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid rgba(125, 211, 252, 0.9);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.95), rgba(15, 23, 42, 0.88));
  color: #e0f2fe;
  text-align: center;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.62), inset 0 0 20px rgba(56, 189, 248, 0.18);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0.98;
  animation: login-card-orbit 24s linear infinite;
  will-change: transform;
}

.orbit-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  clip-path: polygon(8% 0, 100% 0, 100% 78%, 92% 100%, 0 100%, 0 22%);
  pointer-events: none;
}

.orbit-card strong {
  color: #fff;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(186, 230, 253, 0.5);
}

.orbit-card span {
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.45;
}

.orbit-student {
  animation-delay: 0s;
}

.orbit-teacher {
  animation-delay: -4.8s;
}

.orbit-ledger {
  animation-delay: -9.6s;
}

.orbit-score {
  animation-delay: -14.4s;
}

.orbit-report {
  animation-delay: -19.2s;
}

.hub-line {
  position: absolute;
  left: 45%;
  top: 47%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(56, 189, 248, 0.08));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
}

.hub-line-a {
  width: 160px;
  transform: rotate(-90deg);
}

.hub-line-b {
  width: 220px;
  transform: rotate(-23deg);
}

.hub-line-c {
  width: 220px;
  transform: rotate(197deg);
}

.hub-line-d {
  width: 200px;
  transform: rotate(139deg);
}

.hub-line-e {
  width: 220px;
  transform: rotate(48deg);
}

.block-chain-strip {
  position: absolute;
  left: 18px;
  bottom: 250px;
  display: grid;
  grid-template-columns: repeat(3, 118px);
  gap: 18px;
}

.mini-block {
  position: relative;
  min-height: 96px;
  padding: 16px 10px 10px;
  border: 1px solid rgba(56, 189, 248, 0.56);
  background: rgba(3, 105, 161, 0.16);
  color: #bae6fd;
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.34), inset 0 0 18px rgba(14, 165, 233, 0.18);
}

.mini-block::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 46%;
  width: 20px;
  height: 4px;
  background: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.mini-block:last-child::after {
  display: none;
}

.mini-block strong,
.mini-block span {
  display: block;
}

.mini-block strong {
  margin-bottom: 8px;
}

.mini-block span {
  font-size: 11px;
  line-height: 1.6;
}

.login-feature-bar {
  width: min(900px, 76%);
  margin-left: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.16);
}

.login-feature-bar div {
  min-height: 112px;
  padding: 22px 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.32);
}

.login-feature-bar div:last-child {
  border-right: 0;
}

.login-feature-bar strong,
.login-feature-bar span {
  display: block;
}

.login-feature-bar strong {
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 18px;
}

.login-feature-bar span {
  color: #94a3b8;
  line-height: 1.6;
}

.login-console {
  display: grid;
  place-items: center;
}

.console-frame {
  position: relative;
  width: min(480px, 100%);
  padding: 52px 52px 44px;
  border: 1px solid rgba(125, 211, 252, 0.66);
  background: linear-gradient(180deg, rgba(8, 20, 42, 0.88), rgba(7, 18, 38, 0.78));
  box-shadow:
    0 0 0 5px rgba(37, 99, 235, 0.08),
    0 0 42px rgba(56, 189, 248, 0.3),
    inset 0 0 38px rgba(56, 189, 248, 0.1);
}

.console-frame::before,
.console-frame::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-color: #38bdf8;
  pointer-events: none;
}

.console-frame::before {
  right: -7px;
  top: -7px;
  border-top: 3px solid;
  border-right: 3px solid;
}

.console-frame::after {
  right: -7px;
  bottom: -7px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.login-card-head {
  margin-bottom: 28px;
  text-align: center;
}

.login-card-head h2 {
  margin: 0 0 20px;
  color: #eaf6ff;
  font-size: 38px;
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.45);
}

.login-card-head p {
  margin: 0;
  color: #94a3b8;
}

.login-form label {
  display: block;
  margin: 18px 0 8px;
  color: #bfdbfe;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.52);
  background: rgba(15, 23, 42, 0.72);
  color: #e0f2fe;
  font-size: 17px;
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.08);
}

.login-form input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.24);
  border-color: #38bdf8;
}

.login-form button {
  width: 100%;
  min-height: 60px;
  margin-top: 28px;
  border: 1px solid rgba(125, 211, 252, 0.92);
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8 62%, #0891b2);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.55);
}

.login-form button:hover {
  filter: brightness(1.05);
}

.login-security-note {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(14, 116, 144, 0.1);
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.65;
}

.form-error {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.85);
  background:
    linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(69, 10, 10, 0.78)),
    rgba(15, 23, 42, 0.9);
  color: #fff7ed;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0;
  box-shadow:
    0 0 22px rgba(248, 113, 113, 0.22),
    inset 0 0 18px rgba(248, 113, 113, 0.12);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.form-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border: 1px solid rgba(254, 202, 202, 0.75);
  border-radius: 50%;
  color: #fecaca;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.teacher-entry {
  min-height: 58px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.46);
  color: #93c5fd;
  font-weight: 900;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.5);
}

.login-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 12px 0 0;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

@keyframes login-line-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sphere-horizontal-yaw {
  0% {
    transform: rotateY(-24deg) rotateX(10deg);
  }
  50% {
    transform: rotateY(24deg) rotateX(10deg);
  }
  100% {
    transform: rotateY(-24deg) rotateX(10deg);
  }
}

@keyframes sphere-surface-slide {
  from {
    background-position: 0 0, 0 0;
    opacity: 0.42;
  }
  to {
    background-position: 220% 0, 170% 42%;
    opacity: 0.54;
  }
}

@keyframes sphere-body-shade {
  0% {
    transform: translateX(-5px) scaleX(1.04) scaleY(1.02);
    opacity: 0.9;
  }
  50% {
    transform: translateX(8px) scaleX(0.96) scaleY(1.06);
    opacity: 1;
  }
  100% {
    transform: translateX(-5px) scaleX(1.04) scaleY(1.02);
    opacity: 0.9;
  }
}

@keyframes sphere-highlight-drift {
  0% {
    transform: translateX(-8px) scale(1.02);
    opacity: 0.76;
  }
  50% {
    transform: translateX(8px) scale(1.06);
    opacity: 0.92;
  }
  100% {
    transform: translateX(-8px) scale(1.02);
    opacity: 0.76;
  }
}


@keyframes login-orbit3d {
  from {
    transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(64deg) rotateZ(360deg);
  }
}

@keyframes login-card-orbit {
  0% {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(350px) rotateY(0deg) rotateX(-10deg) scale(1.1);
    opacity: 1;
  }
  20% {
    transform: translate(-50%, -50%) rotateY(72deg) translateZ(350px) rotateY(-72deg) rotateX(-10deg) scale(1.04);
    opacity: 0.94;
  }
  40% {
    transform: translate(-50%, -50%) rotateY(144deg) translateZ(350px) rotateY(-144deg) rotateX(-10deg) scale(0.94);
    opacity: 0.82;
  }
  60% {
    transform: translate(-50%, -50%) rotateY(216deg) translateZ(350px) rotateY(-216deg) rotateX(-10deg) scale(0.94);
    opacity: 0.82;
  }
  80% {
    transform: translate(-50%, -50%) rotateY(288deg) translateZ(350px) rotateY(-288deg) rotateX(-10deg) scale(1.04);
    opacity: 0.94;
  }
  100% {
    transform: translate(-50%, -50%) rotateY(360deg) translateZ(350px) rotateY(-360deg) rotateX(-10deg) scale(1.1);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .login-page {
    overflow-x: auto;
  }

  .login-command {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .login-hero {
    min-height: 980px;
  }

  .login-headline {
    display: grid;
  }

  .training-chain {
    margin: 120px 0 0;
  }

  .chain-orbit3d {
    width: 520px;
    transform: translate(-50%, -50%) rotateX(60deg) scale(0.82);
  }

  .ledger-panel,
  .block-chain-strip {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
  }

  .login-feature-bar {
    width: 100%;
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .login-feature-bar div {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  }

  .console-frame {
    padding: 34px 24px;
  }

  .login-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}




