:root {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: #152235;
  background: #edf2f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.public-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.public-brand > span,
.auth-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #3559a6;
  border-radius: 14px;
  font: 800 14px/1 Arial, sans-serif;
  letter-spacing: .08em;
}

.public-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.public-brand strong {
  font-size: 13px;
  letter-spacing: .14em;
}

.public-brand small {
  color: #667489;
  font-size: 12px;
}

.text-link,
.back-link,
.demo-link {
  color: #3559a6;
  font-weight: 650;
  text-decoration: none;
}

.landing-page {
  background:
    radial-gradient(circle at 78% 18%, rgba(96, 142, 218, .2), transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(156, 191, 232, .25), transparent 24%),
    #edf2f8;
}

.landing-main {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: clamp(36px, 4.5vh, 72px) 0 clamp(40px, 6vh, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #69809f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
}

.landing-copy h1,
.auth-intro h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 90px);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.landing-copy h1 span {
  color: #3559a6;
}

.landing-copy > p:last-child {
  max-width: 670px;
  margin: clamp(18px, 2.5vh, 28px) 0 0;
  color: #5c6b7f;
  font-size: clamp(15px, 1.08vw, 17px);
  line-height: 1.7;
}

.entry-grid {
  margin-top: clamp(34px, 5vh, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.5vw, 28px);
}

.entry-card {
  min-height: clamp(250px, 27vh, 320px);
  padding: clamp(28px, 2.5vw, 44px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(77, 104, 140, .18);
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(39, 61, 92, .08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 72px rgba(39, 61, 92, .14);
}

.private-card {
  color: #f7f9ff;
  background: linear-gradient(145deg, #172844, #223c65);
}

.demo-card {
  background: rgba(255, 255, 255, .86);
}

.entry-index {
  color: #8fa4c2;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
}

.entry-card h2 {
  margin: 46px 0 12px;
  font-size: 32px;
}

.entry-card p {
  margin: 0;
  color: #9bacc1;
  line-height: 1.7;
}

.demo-card p {
  color: #657489;
}

.entry-card strong {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  justify-content: space-between;
  color: inherit;
}

.privacy-strip {
  margin-top: clamp(18px, 2.5vh, 30px);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #637287;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(77, 104, 140, .13);
  border-radius: 16px;
}

.privacy-strip span {
  color: #3559a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.privacy-strip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.auth-page {
  padding: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(73, 122, 201, .18), transparent 28%),
    #edf2f8;
}

.back-link {
  display: inline-block;
  font-size: 13px;
}

.auth-shell {
  width: min(1020px, 100%);
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: 80px;
}

@media (min-width: 1800px) {
  .public-header,
  .landing-main {
    width: min(1680px, calc(100% - 96px));
  }

  .landing-copy {
    max-width: 1120px;
  }

  .landing-copy > p:last-child {
    max-width: 900px;
    font-size: 18px;
  }

  .entry-card {
    min-height: 320px;
  }

  .entry-card h2 {
    margin-top: 54px;
    font-size: 36px;
  }

  .auth-shell {
    width: min(1360px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
    gap: 120px;
  }

  .auth-card {
    padding: 42px;
  }
}

.auth-intro h1 {
  margin-top: 24px;
  font-size: clamp(42px, 5vw, 66px);
}

.auth-intro > p:last-child {
  max-width: 490px;
  color: #617188;
  line-height: 1.8;
}

.auth-access-note {
  margin-top: 26px;
  white-space: nowrap;
  font-size: 15px;
}

.auth-access-note i {
  width: 1px;
  height: 14px;
  margin: 0 14px;
  display: inline-block;
  vertical-align: -2px;
  background: #b8c5d7;
}

.auth-card {
  padding: 34px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(77, 104, 140, .18);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(39, 61, 92, .12);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.auth-help {
  margin: 0 0 24px;
  color: #6a788b;
  font-size: 13px;
  line-height: 1.7;
}

.auth-security-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #68788e;
  background: #f5f8fc;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
}

.auth-security-note strong {
  margin-right: 8px;
  color: #34475f;
}

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

.auth-field span {
  color: #46556a;
  font-size: 12px;
  font-weight: 650;
}

.auth-field input {
  height: 48px;
  padding: 0 14px;
  color: #152235;
  background: #f7f9fc;
  border: 1px solid #d6dee8;
  border-radius: 11px;
  outline: none;
}

.auth-field input:focus {
  border-color: #6c8fc5;
  box-shadow: 0 0 0 4px rgba(53, 89, 166, .1);
}

.auth-primary {
  width: 100%;
  height: 50px;
  margin-top: 24px;
  color: #fff;
  background: #3559a6;
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-primary:disabled {
  opacity: .55;
}

.auth-error {
  margin: 18px 0 0;
  padding: 11px 13px;
  color: #8e3037;
  background: #fff1f2;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.demo-link {
  margin-top: 22px;
  display: block;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-access-note {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .public-header,
  .landing-main {
    width: min(100% - 28px, 1180px);
  }

  .landing-main {
    padding-top: 36px;
  }

  .landing-copy h1 {
    font-size: 43px;
  }

  .entry-grid {
    margin-top: 42px;
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 240px;
  }

  .privacy-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .auth-page {
    padding: 20px 14px 34px;
  }

  .auth-shell {
    min-height: 0;
    padding-top: 52px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-intro h1 {
    font-size: 42px;
  }

  .auth-access-note {
    white-space: normal;
  }

  .auth-access-note i {
    margin: 0 8px;
  }
}
