:root {
  --bg: #080b1f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: #8c93a6;
  --accent: #4034ee;
  --accent-2: #19d6b5;
  --gold: #ffc56a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 550px);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(29, 212, 181, 0.2), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(64, 52, 238, 0.24), transparent 30%),
    linear-gradient(135deg, #080b1f 0%, #0b1232 48%, #080b1f 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

.beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  box-shadow: 0 0 24px rgba(25, 214, 181, 0.8);
}

.brand-panel,
.auth-panel {
  position: relative;
  z-index: 1;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 38px;
  padding: 40px clamp(36px, 6vw, 100px);
}

.brand-header {
  position: absolute;
  top: 28px;
  left: clamp(36px, 6vw, 100px);
}

.brand-name {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(64, 52, 238, 0.32);
}

.brand-subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
}

.proof-strip div,
.feature-card,
.vip-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.proof-strip div {
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 8px;
}

.proof-strip strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.proof-strip span,
.message-block p,
.feature-card p,
.vip-card span {
  color: rgba(255, 255, 255, 0.66);
}

.proof-strip span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.message-block h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.message-block p {
  margin: 18px 0 0;
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
}

.feature-card {
  min-height: 130px;
  padding: 18px 16px;
  border-radius: 8px;
}

.feature-icon {
  display: block;
  height: 28px;
  font-size: 24px;
}

.feature-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(560px, 100%);
  min-height: 96px;
  padding: 22px 24px;
  border-radius: 8px;
}

.vip-card strong,
.vip-card span {
  display: block;
}

.vip-card strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.vip-card b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 13px;
  color: #1c1300;
  background: linear-gradient(135deg, #ffe39b, #ff9b4a);
  font-size: 13px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 65px 36px;
  background: linear-gradient(180deg, rgba(4, 7, 21, 0.58), rgba(4, 7, 21, 0.3));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tabs {
  display: flex;
  gap: 34px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 88px;
}

.tab {
  position: relative;
  height: 48px;
  padding: 0;
  border: 0;
  color: #6f7688;
  background: transparent;
}

.tab.is-active {
  color: #fff;
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.auth-form {
  display: none;
  width: 100%;
  max-width: 420px;
}

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

.field {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: rgba(25, 214, 181, 0.46);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(25, 214, 181, 0.08);
}

.field-icon {
  flex: 0 0 48px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.field input {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  color: #eef1f8;
  background: transparent;
  font-size: 14px;
}

.field input::placeholder {
  color: #777f91;
}

.verify-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.verify-row .field {
  margin-bottom: 0;
}

.captcha {
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #f4f6fb;
}

.captcha canvas {
  display: block;
  width: 118px;
  height: 46px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 22px;
  color: #6f7688;
  font-size: 13px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.text-link,
.admin-link {
  border: 0;
  padding: 0;
  color: #747b8d;
  background: transparent;
}

.admin-link {
  color: var(--accent);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #6a5cff 48%, var(--accent-2));
  box-shadow: 0 18px 36px rgba(64, 52, 238, 0.28);
  font-size: 15px;
  transition: transform 0.2s, filter 0.2s;
}

.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 0 0;
  color: #747b8d;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.09);
}

.divider::before {
  margin-right: 14px;
}

.divider::after {
  margin-left: 14px;
}

.toast {
  min-height: 24px;
  width: 100%;
  max-width: 420px;
  margin-top: 18px;
  color: var(--accent-2);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

footer {
  margin-top: auto;
  padding-top: 80px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .brand-panel {
    min-height: auto;
    padding: 120px 24px 30px;
  }

  .brand-header {
    left: 24px;
  }

  .auth-panel {
    min-height: auto;
    padding: 34px 24px 28px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-form,
  .tabs,
  .toast {
    max-width: 100%;
  }

  .tabs {
    margin-bottom: 36px;
  }

  footer {
    padding-top: 36px;
  }
}

@media (max-width: 620px) {
  .brand-panel {
    gap: 24px;
  }

  .proof-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .vip-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .verify-row {
    grid-template-columns: 1fr;
  }

  .captcha,
  .captcha canvas {
    width: 100%;
  }
}
