/* ============================================================
   login 页面专属样式
   ============================================================ */

/* ---------- base ---------- */
:root {
  --green: #4cc39a;
  --brand: #1b9668;
  --dark: #1a1a1a;
  --muted: #646464;
  --line: #f2f4f8
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #fff;
  color: var(--dark);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased
}

a {
  text-decoration: none;
  color: inherit
}

button {
  font: inherit;
  cursor: pointer;
  border: 0
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--line);
  z-index: 100
}

.nav {
  max-width: 1436px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em
}

.logo b {
  color: var(--brand)
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted)
}

.nav nav a {
  position: relative;
  padding: 6px 0;
  transition: color .3s
}

.nav nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--brand);
  transition: width .3s
}

.nav nav a:hover {
  color: var(--dark)
}

.nav nav a:hover:after {
  width: 100%
}

.nav nav a[aria-current] {
  color: var(--brand)
}

.nav nav a[aria-current]:after {
  width: 100%
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px
}

.btn {
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .3s, color .3s
}

.btn.login {
  background: transparent;
  color: var(--dark)
}

.btn.login:hover {
  background: rgba(0, 0, 0, .05)
}

.btn.green {
  background: var(--dark);
  color: #fff
}

.btn.green:hover {
  background: #000
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 65px
}

.auth-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  gap: 18px
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em
}

.auth-left h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 6px 0 4px;
  font-weight: 500
}

.auth-left h1 em {
  font-style: normal;
  color: #22b07c
}

.auth-left p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  font-size: 15px;
  max-width: 460px;
  margin: 0
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px
}

.auth-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2a2a2a
}

.auth-points i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px
}

.card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(24, 28, 31, .06)
}

.card h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -.02em
}

.card .sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  margin: 0 0 26px
}

.field {
  margin-bottom: 16px
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e8e6;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 194, 154, .14)
}

.rowline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 14px;
  font-size: 12.5px;
  color: var(--muted)
}

.rowline a {
  color: var(--brand)
}

.card .btn.submit {
  width: 100%;
  background: var(--dark);
  color: #fff;
  padding: 13px 20px;
  font-size: 14px;
  margin-top: 2px
}

.card .btn.submit:hover {
  background: #000
}

.card .alt {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center
}

.card .alt a {
  color: var(--brand);
  font-weight: 500
}

@media(max-width:900px) {
  .auth {
    grid-template-columns: 1fr
  }

  .auth-left {
    padding: 48px 28px;
    min-height: auto
  }

  .auth-right {
    padding: 32px 20px 60px
  }
}

/* ===== 统一导航：与全站其他页面一致（替换本页旧导航样式） ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid #f2f4f8;
  padding: 0;
  z-index: 1100
}

.nav {
  max-width: 1436px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -.02em;
  flex: 0 0 auto;
  white-space: nowrap
}

.logo b {
  color: #1b9668
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #646464;
  margin-left: 4px
}

.nav nav a {
  position: relative;
  color: #646464;
  padding: 6px 0
}

.nav nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: #1b9668;
  transition: width .3s
}

.nav nav a:hover {
  color: #1a1a1a
}

.nav nav a:hover:after {
  width: 100%
}

.nav nav a[aria-current] {
  color: #1b9668
}

.nav nav a[aria-current]:after {
  width: 100%
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px
}

.nav-actions .btn {
  height: 40px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  line-height: 1
}

.nav-actions .btn.login {
  background: transparent;
  color: #1a1a1a;
  border: 0
}

.nav-actions .btn.login:hover {
  background: rgba(0, 0, 0, .05)
}

.nav-actions .btn.green {
  background: #1a1a1a;
  color: #fff;
  border: 0
}

.nav-actions .btn.green:hover {
  background: #000
}

@media(max-width:960px) {
  header {
    height: 60px
  }

  .nav {
    padding: 0 16px;
    gap: 14px
  }

  .nav nav {
    display: none
  }

  .nav-actions .btn {
    height: 36px;
    padding: 8px 16px;
    font-size: 13px
  }
}

@media(max-width:640px) {
  header {
    height: 56px
  }

  .nav {
    padding: 0 12px;
    height: 55px;
    gap: 10px
  }

  .logo {
    font-size: 18px
  }

  .logo-mark {
    width: 68px;
    height: 20px;
    vertical-align: -5px;
    margin-right: 5px
  }

  .nav-actions {
    gap: 8px
  }

  .nav-actions .btn.login {
    display: none
  }

  .nav-actions .btn {
    height: 34px;
    padding: 8px 14px;
    font-size: 12px
  }
}

/* ===== 左侧仅保留示意图 ===== */
.auth-left {
  align-items: center;
  justify-content: center;
  gap: 0
}

.auth-illust {
  width: min(560px, 86%);
  height: auto;
  display: block
}

/* 左栏去除背景图 */
.auth-left {
  background: none
}

/* 官方控制台登录内嵌层 */
.ext-login {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 14, 12, .55);
  display: flex;
  flex-direction: column;
  padding: 18px
}

.ext-login[hidden] {
  display: none
}

.ext-login-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 12px 18px;
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500
}

.ext-login-bar .ext-acts {
  display: flex;
  gap: 8px;
  flex: 0 0 auto
}

.ext-login-bar .btn {
  padding: 8px 16px;
  font-size: 12.5px
}

.ext-login iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 0 0 14px 14px
}
