/* 双栏登录门卡页（还原书房青黛暖纸双栏构图） */

.gate-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 32px;
  gap: 20px;
}

.gate-grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

/* 左栏深青黛品牌卡 */
.gate-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 198, 174, 0.16), transparent 44%),
    linear-gradient(155deg, #286555 0%, #1D4F42 54%, #153D32 100%);
  color: #FAF7F0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

[data-subject="en"] .gate-brand-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(163, 181, 234, 0.2), transparent 44%),
    linear-gradient(155deg, #2E4785 0%, #24386E 54%, #1A2A55 100%);
}

.gate-brand-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gate-brand-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gate-brand-id .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.gate-brand-id .brand-mark-plus {
  border-color: #1F5446;
}

.gate-brand-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #FAF7F0;
}

.gate-brand-sub {
  font-size: 13px;
  color: rgba(250, 247, 240, 0.78);
  line-height: 1.5;
  margin-top: 2px;
}

.gate-slogan {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: 0.015em;
  color: #FFFFFF;
}

/* 白色微缩对比示范卡 */
.gate-demo-card {
  background: #FFFDF9;
  color: #1E2421;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(10, 32, 26, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="dark"] .gate-demo-card {
  background: #272420;
  color: #EDE8DF;
  border-color: rgba(255, 255, 255, 0.1);
}

.gate-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gate-demo-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #4D5753;
}

[data-theme="dark"] .gate-demo-title {
  color: #C0B8AC;
}

.gate-demo-score {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: #E5F4EC;
  color: #186441;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .gate-demo-score {
  background: rgba(84, 166, 142, 0.2);
  color: #6CD0A2;
}

.gate-demo-diff {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #F8F5EF;
  border: 1px solid #EAE2D5;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.9;
  color: #1E2421;
}

[data-theme="dark"] .gate-demo-diff {
  background: #1E1C19;
  border-color: #3A352E;
  color: #EDE8DF;
}

.gate-del {
  color: #BC412B;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(188, 65, 43, 0.78);
  padding: 0 3px;
}

[data-theme="dark"] .gate-del {
  color: #F28B7A;
}

.gate-add {
  background: #E5F4EC;
  color: #186441;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  margin-left: 3px;
}

[data-theme="dark"] .gate-add {
  background: rgba(84, 166, 142, 0.2);
  color: #6CD0A2;
}

.gate-demo-explain {
  font-size: 13.5px;
  line-height: 1.72;
  color: #58605C;
}

[data-theme="dark"] .gate-demo-explain {
  color: #B8B0A4;
}

/* 右栏白色登录卡 */
.gate-login-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.gate-login-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gate-login-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.4;
}

.gate-login-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input {
  padding-right: 42px;
}

.input-trailing {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.gate-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.gate-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--brand);
  font-size: 13px;
}

.gate-help-btn:hover {
  background: var(--brand-soft);
}

.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 13px;
}

.gate-divider::before,
.gate-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border-soft);
}

.gate-footer {
  width: 100%;
  max-width: 960px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.gate-footer a {
  color: var(--ink-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-footer a:hover {
  color: var(--brand);
}

@media (max-width: 839px) {
  .gate-wrap {
    padding: 18px 14px 28px;
    justify-content: flex-start;
  }

  .gate-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gate-brand-panel,
  .gate-login-card {
    padding: 24px 20px;
  }

  .gate-slogan {
    font-size: 20px;
  }
}
