:root {
  --bg: #07111f;
  --panel: rgba(10, 24, 43, 0.82);
  --panel-strong: rgba(13, 32, 58, 0.96);
  --line: rgba(125, 211, 252, 0.28);
  --text: #eef8ff;
  --muted: #95abc3;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --danger: #fb7185;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #050a13 0%, var(--bg) 52%, #091827 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 36px;
  min-height: 100vh;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  align-items: center;
}

.auth-panel,
.showcase-panel {
  min-width: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 14px;
  color: #06111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #a7f3d0);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.32);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.18;
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 32, 58, 0.9), rgba(7, 17, 31, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(5, 12, 23, 0.68);
}

.mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  transition: 0.2s ease;
}

.mode-tab.active {
  color: #06111f;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #8bdbff);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
}

.form-heading h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
}

.form-heading p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: #cbd8e8;
  font-size: 14px;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  background: rgba(4, 12, 24, 0.76);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(34, 211, 238, 0.78);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.remember-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.primary-action {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  color: #06111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3);
}

.message {
  min-height: 24px;
  margin: 16px 0 8px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.6;
}

.message.error {
  color: var(--danger);
}

.switch-copy {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
}

.switch-copy button {
  border: 0;
  color: var(--cyan);
  font-weight: 700;
  background: transparent;
}

.showcase-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(17, 48, 82, 0.8), rgba(5, 15, 28, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 80px);
  box-shadow: var(--shadow);
}

.showcase-panel::before,
.showcase-panel::after {
  position: absolute;
  content: "";
}

.showcase-panel::before {
  inset: 28px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 22px;
}

.showcase-panel::after {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.34), transparent 68%);
}

.orbit {
  position: absolute;
  inset: 86px 76px auto auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

.orbit span {
  position: absolute;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 50%;
}

.orbit span:nth-child(1) {
  inset: 34px;
}

.orbit span:nth-child(2) {
  inset: 72px;
}

.orbit span:nth-child(3) {
  width: 18px;
  height: 18px;
  right: 38px;
  top: 48px;
  border: 0;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.status-pill {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  border-radius: 999px;
  color: #bfffe5;
  background: rgba(20, 83, 45, 0.22);
}

.showcase-content h2 {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  word-break: keep-all;
}

.showcase-copy {
  max-width: 520px;
  margin-bottom: 28px;
  color: #b7c8dc;
  font-size: 17px;
  line-height: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(4, 12, 24, 0.62);
}

.metric-card.wide {
  grid-column: 1 / -1;
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 27px;
}

.metric-card p {
  margin-bottom: 0;
  color: #9fb3ca;
  font-size: 14px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(16px) rotate(8deg);
  }
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(100% - 32px, 620px);
    padding: 28px 0;
  }

  .showcase-panel,
  .showcase-content {
    min-height: 460px;
  }

  .showcase-content {
    padding: 32px;
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: min(100% - 24px, 460px);
    padding: 18px 0;
  }

  .brand-row {
    margin-bottom: 16px;
  }

  .auth-card {
    padding: 20px;
    border-radius: 16px;
  }

  .form-heading h2 {
    font-size: 24px;
  }

  .showcase-panel,
  .showcase-content {
    min-height: 410px;
  }

  .showcase-content {
    padding: 24px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card.wide {
    grid-column: auto;
  }
}
