:root {
  --bot-blue: #1f6bff;
  --bot-blue-2: #2fa8ff;
  --bot-deep: #061b4d;
  --bot-muted: #607099;
  --bot-line: #d8e4f8;
  --bot-soft: #f3f7ff;
  --bot-card: #ffffff;
  --bot-shadow: 0 28px 90px rgba(29, 84, 177, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bot-deep);
  background:
    radial-gradient(circle at 22% 6%, rgba(47, 168, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.auth-page {
  min-height: 100vh;
  padding: 30px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(1900px, 100%);
  min-height: min(1040px, calc(100vh - 60px));
  display: grid;
  grid-template-columns: minmax(460px, 1.14fr) minmax(380px, 0.86fr);
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--bot-shadow);
}

.welcome-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(34px, 4.4vw, 64px);
  background:
    radial-gradient(circle at 86% 18%, rgba(31, 107, 255, 0.12), transparent 22%),
    radial-gradient(circle at 60% 58%, rgba(47, 168, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
}

.welcome-panel::before {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -34%;
  width: 76%;
  height: 62%;
  border: 1px solid rgba(31, 107, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.welcome-panel::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 184px;
  width: 132px;
  height: 88px;
  opacity: 0.45;
  background-image: radial-gradient(#c7d8f8 2px, transparent 2px);
  background-size: 18px 18px;
}

.welcome-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 700px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.bot-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.bot-avatar,
.mini-bot {
  position: relative;
  display: inline-block;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #dfefff 100%);
  box-shadow: 0 16px 34px rgba(31, 107, 255, 0.18);
}

.bot-avatar {
  width: 70px;
  height: 52px;
}

.bot-avatar::before,
.mini-bot::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border-radius: 12px;
  background: #061b4d;
  box-shadow: inset 0 -6px 10px rgba(47, 168, 255, 0.24);
}

.bot-avatar::after,
.mini-bot::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 23px;
  width: 8px;
  height: 10px;
  border-radius: 999px;
  background: #6ee7ff;
  box-shadow: 18px 0 0 #6ee7ff;
}

.bot-avatar i,
.mini-bot i {
  display: none;
}

.bot-avatar b {
  position: absolute;
  right: -12px;
  bottom: -6px;
  width: 34px;
  height: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bot-blue-2), var(--bot-blue));
}

.bot-avatar b::before {
  content: "...";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 16px;
  text-align: center;
}

.bot-brand strong,
.phone-top strong {
  display: block;
  color: var(--bot-deep);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.bot-brand strong em,
.phone-top strong em,
.welcome-title h1 em {
  color: var(--bot-blue);
  font-style: normal;
}

.bot-brand small {
  display: block;
  margin-top: 3px;
  color: var(--bot-deep);
  font-size: 13px;
  letter-spacing: 0.34em;
}

.welcome-title {
  align-self: center;
  max-width: 420px;
}

.welcome-title h1 {
  margin: 0;
  color: var(--bot-deep);
  font-size: clamp(58px, 6.4vw, 108px);
  line-height: 1;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.welcome-title p {
  margin: 28px 0 0;
  color: #526285;
  font-size: clamp(25px, 2.4vw, 40px);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.welcome-title span {
  display: block;
  width: 132px;
  height: 7px;
  margin-top: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bot-blue), rgba(31, 107, 255, 0.08));
}

.welcome-art {
  position: absolute;
  inset: 26px 40px 120px 38%;
  pointer-events: none;
}

.phone-mock {
  position: absolute;
  left: 0;
  top: 0;
  width: min(370px, 42vw);
  min-width: 300px;
  height: 690px;
  padding: 28px 22px;
  border: 2px solid rgba(31, 107, 255, 0.24);
  border-radius: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 249, 255, 0.9));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.62),
    0 32px 90px rgba(31, 107, 255, 0.18);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-bot {
  width: 48px;
  height: 38px;
  border-radius: 14px;
}

.mini-bot::before {
  inset: 7px 8px;
  border-radius: 10px;
}

.mini-bot::after {
  left: 17px;
  top: 16px;
  width: 6px;
  height: 7px;
  box-shadow: 12px 0 0 #6ee7ff;
}

.phone-top i {
  margin-left: auto;
  width: 72px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--bot-line);
}

.mock-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(31, 107, 255, 0.08);
}

.mock-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--bot-deep);
  font-size: 15px;
}

.mock-card h3 b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--bot-blue);
  font-size: 13px;
}

.mock-card h3 small {
  color: #667da8;
  font-size: 12px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-grid span,
.mock-grid i {
  height: 72px;
  border-radius: 9px;
}

.mock-grid span {
  background:
    linear-gradient(135deg, rgba(6, 27, 77, 0.1), transparent),
    linear-gradient(135deg, #b9d8ff, #f4f8ff);
}

.mock-grid span:nth-child(2),
.mock-grid span:nth-child(4) {
  background: linear-gradient(135deg, #d9c4a4, #f9f2ea);
}

.mock-grid span:nth-child(3) {
  background: linear-gradient(135deg, #c9d4df, #ffffff);
}

.mock-grid i {
  display: grid;
  place-items: center;
  border: 1px dashed #b9cbef;
  color: #8aa8de;
  background: #f8fbff;
  font-size: 28px;
  font-style: normal;
}

.map-box {
  position: relative;
  height: 102px;
  overflow: hidden;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(31, 107, 255, 0.08), transparent),
    repeating-linear-gradient(28deg, rgba(126, 164, 215, 0.16) 0 2px, transparent 2px 22px),
    #eef5ff;
}

.map-box i {
  position: absolute;
  left: 50%;
  top: 31px;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  background: var(--bot-blue);
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 12px 24px rgba(31, 107, 255, 0.22);
}

.map-box i::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.map-box strong {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #31527d;
  font-size: 13px;
}

.style-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.style-row span {
  display: grid;
  height: 58px;
  place-items: center;
  border: 1px solid var(--bot-line);
  border-radius: 12px;
  color: #31527d;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 700;
}

.style-row .active {
  color: var(--bot-blue);
  border-color: var(--bot-blue);
  background: #edf5ff;
}

.phone-mock button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--bot-blue-2), var(--bot-blue));
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(31, 107, 255, 0.22);
}

.result-preview {
  position: absolute;
  right: 0;
  top: 255px;
  width: 310px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 70px rgba(31, 107, 255, 0.14);
}

.result-preview h3 {
  margin: 0 0 22px;
  font-size: 20px;
}

.result-preview label {
  display: block;
  margin: 16px 0 8px;
  color: var(--bot-deep);
  font-size: 14px;
  font-weight: 800;
}

.result-preview p {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  color: #456091;
  background: #edf4ff;
  font-size: 13px;
  line-height: 1.55;
}

.result-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #456091;
  background: #edf4ff;
  font-size: 12px;
}

.workflow-strip {
  align-self: end;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(31, 107, 255, 0.1);
}

.workflow-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.workflow-strip b {
  grid-row: span 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--bot-blue);
}

.workflow-strip strong {
  font-size: 16px;
}

.workflow-strip small {
  color: var(--bot-muted);
  font-size: 13px;
}

.workflow-strip i {
  height: 2px;
  background-image: linear-gradient(90deg, #9fb9f5 40%, transparent 40%);
  background-size: 10px 2px;
}

.form-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  align-content: center;
  padding: clamp(42px, 5vw, 82px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -28px 0 70px rgba(48, 98, 176, 0.06);
}

.auth-form {
  display: none;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

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

.form-head {
  margin-bottom: 42px;
}

.form-head h2 {
  margin: 0;
  color: #111827;
  font-size: 40px;
  font-weight: 850;
  line-height: 1.18;
}

.form-head p {
  margin: 12px 0 0;
  color: var(--bot-muted);
  font-size: 15px;
  line-height: 1.7;
}

.line-field {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.line-field span {
  color: transparent;
  height: 0;
  overflow: hidden;
}

.line-field input {
  width: 100%;
  height: 52px;
  border: 0;
  border-bottom: 2px solid var(--bot-line);
  border-radius: 0;
  outline: 0;
  padding: 0 0 12px;
  color: #1f2937;
  background: transparent;
  font-size: 24px;
}

.line-field input::placeholder {
  color: #a8b2c3;
}

.line-field input:focus {
  border-bottom-color: var(--bot-blue);
}

.captcha-field > div,
.sms-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: end;
}

.captcha-code {
  height: 54px;
  border: 0;
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(47, 168, 255, 0.12) 22% 24%, transparent 24% 48%, rgba(134, 102, 255, 0.18) 48% 51%, transparent 51%),
    #fff;
  color: #2cba6c;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.sms-field button {
  height: 50px;
  border: 0;
  border-left: 2px solid #d7dce7;
  background: transparent;
  color: var(--bot-blue);
  font-size: 24px;
  font-weight: 600;
}

.sms-field small {
  margin-top: -20px;
  color: var(--bot-muted);
  font-size: 13px;
}

.login-tools,
.agreement-line {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 10px 0 34px;
  color: #707b90;
  font-size: 22px;
}

.login-tools label,
.agreement-line {
  user-select: none;
}

.login-tools input,
.agreement-line input {
  width: 24px;
  height: 24px;
  margin: 0 10px 0 0;
  accent-color: var(--bot-blue);
  vertical-align: -4px;
}

.login-tools button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #7a8292;
  font-size: 21px;
}

.agreement-line {
  gap: 0;
}

.agreement-line span {
  color: #707b90;
}

.main-button,
.sub-button,
.return-button {
  width: 100%;
  height: 84px;
  border: 0;
  border-radius: 20px;
  font-size: 28px;
  font-weight: 750;
}

.main-button {
  color: #fff;
  background: #cfe0ff;
}

.auth-form.ready .main-button {
  background: linear-gradient(135deg, var(--bot-blue-2), var(--bot-blue));
  box-shadow: 0 18px 34px rgba(31, 107, 255, 0.24);
}

.sub-button {
  margin-top: 28px;
  color: #111827;
  background: #f6f8fc;
}

.sub-button::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 28px;
  margin-right: 14px;
  border: 2px solid var(--bot-blue);
  border-radius: 6px;
  vertical-align: -5px;
}

.return-button {
  margin-top: 24px;
  color: #9ba3b2;
  background: transparent;
}

.bottom-link {
  margin: 38px 0 0;
  color: #1f2937;
  font-size: 22px;
}

.bottom-link button {
  border: 0;
  background: transparent;
  color: var(--bot-blue);
  font-size: 22px;
}

.identity-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

.identity-tabs label {
  position: relative;
}

.identity-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.identity-tabs span {
  display: grid;
  height: 66px;
  place-items: center;
  border: 2px solid var(--bot-line);
  border-radius: 18px;
  color: #607099;
  background: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  font-weight: 750;
}

.identity-tabs input:checked + span {
  border-color: var(--bot-blue);
  color: var(--bot-blue);
  background: #edf5ff;
  box-shadow: 0 14px 28px rgba(31, 107, 255, 0.1);
}

@media (max-width: 1440px) {
  .auth-card {
    grid-template-columns: minmax(430px, 1fr) minmax(380px, 0.92fr);
  }

  .welcome-art {
    inset: 30px 28px 120px 38%;
  }

  .result-preview {
    display: none;
  }

  .phone-mock {
    width: min(330px, 40vw);
    min-width: 280px;
    height: 650px;
  }
}

@media (max-width: 980px) {
  .auth-page {
    padding: 18px;
  }

  .auth-card {
    min-height: calc(100vh - 36px);
    grid-template-columns: minmax(360px, 0.95fr) minmax(340px, 1fr);
  }

  .welcome-panel {
    padding: 30px;
  }

  .welcome-content {
    min-height: 650px;
  }

  .welcome-title p {
    font-size: 24px;
  }

  .welcome-art {
    opacity: 0.56;
    inset: 112px -92px 106px 34%;
  }

  .workflow-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .workflow-strip i {
    display: none;
  }

  .form-panel {
    padding: 38px 28px 48px;
  }
}

@media (max-width: 760px) {
  .auth-page {
    padding: 0;
  }

  .auth-card {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .welcome-panel {
    min-height: 430px;
  }

  .welcome-content {
    min-height: 370px;
  }

  .welcome-title {
    margin-top: 26px;
  }

  .welcome-title h1 {
    font-size: 54px;
  }

  .welcome-title p {
    font-size: 21px;
  }

  .welcome-art {
    display: none;
  }

  .workflow-strip {
    display: none;
  }

  .form-panel {
    padding: 32px 22px 44px;
  }

  .form-head {
    margin-bottom: 28px;
  }

  .form-head h2 {
    font-size: 31px;
  }

  .line-field {
    margin-bottom: 22px;
  }

  .line-field input,
  .login-tools,
  .agreement-line,
  .sms-field button,
  .bottom-link,
  .bottom-link button {
    font-size: 17px;
  }

  .captcha-field > div,
  .sms-field > div {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
  }

  .captcha-code {
    font-size: 22px;
  }

  .login-tools {
    flex-wrap: wrap;
    gap: 16px;
  }

  .login-tools button {
    margin-left: 0;
  }

  .main-button,
  .sub-button,
  .return-button {
    height: 60px;
    border-radius: 15px;
    font-size: 20px;
  }
}

@media (min-width: 981px) and (max-height: 900px), (min-width: 981px) and (max-width: 1366px) {
  .auth-page {
    padding: clamp(12px, 1.8vw, 22px);
  }

  .auth-card {
    width: min(1380px, 100%);
    min-height: min(820px, calc(100vh - 28px));
    grid-template-columns: minmax(390px, 1fr) minmax(360px, 0.9fr);
    border-radius: 26px;
  }

  .welcome-panel {
    padding: clamp(28px, 3.2vw, 48px);
  }

  .welcome-content {
    min-height: 620px;
  }

  .welcome-title h1 {
    font-size: clamp(48px, 5.2vw, 82px);
  }

  .welcome-title p {
    margin-top: 20px;
    font-size: clamp(20px, 2vw, 30px);
  }

  .welcome-art {
    inset: 24px 18px 96px 40%;
  }

  .phone-mock {
    width: min(300px, 34vw);
    min-width: 250px;
    height: 590px;
    padding: 22px 18px;
  }

  .form-panel {
    padding: clamp(34px, 4vw, 58px);
  }

  .form-wrap {
    max-width: 540px;
  }

  .form-head h2 {
    font-size: clamp(31px, 3vw, 40px);
  }

  .main-button,
  .sub-button,
  .return-button {
    height: 58px;
    font-size: 22px;
  }
}
