:root {
  --auth-ink: #25204d;
  --auth-muted: #7a7890;
  --auth-line: #e9e8f0;
  --auth-soft: #f8f8fb;
  --auth-primary: #5147e7;
  --auth-primary-dark: #3e36bd;
  --auth-danger: #c53d52;
  --auth-success: #21865b;
}

html,
body.jc-auth-body {
  min-height: 100%;
  margin: 0;
}

body.jc-auth-body {
  min-height: 100vh;
  background: #f2f2f7;
  color: var(--auth-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.jc-auth-body *,
.jc-auth-body *::before,
.jc-auth-body *::after {
  box-sizing: border-box;
}

.jc-auth-body a {
  color: inherit;
  text-decoration: none;
}

.jc-auth-body button,
.jc-auth-body input {
  font: inherit;
}

.jc-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #24204f 0%, #3b347b 52%, #5147e7 100%);
}

.jc-auth-shell {
  width: min(1000px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22, 18, 66, .28);
}

.jc-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px 48px 38px;
  color: #fff;
  background: linear-gradient(160deg, #5147e7 0%, #7166e8 58%, #9075db 100%);
}

.jc-auth-brand::before,
.jc-auth-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  pointer-events: none;
}

.jc-auth-brand::before {
  width: 390px;
  height: 390px;
  right: -188px;
  top: -104px;
}

.jc-auth-brand::after {
  width: 260px;
  height: 260px;
  left: -146px;
  bottom: -106px;
}

.jc-auth-brand-content,
.jc-auth-brand-footer {
  position: relative;
  z-index: 1;
}

.jc-auth-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 82px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
}

.jc-auth-brand-mark img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
}

.jc-auth-brand-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: .02em;
}

.jc-auth-brand-copy {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  line-height: 1.9;
}

.jc-auth-brand-points {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
}

.jc-auth-brand-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jc-auth-brand-points i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 11px;
}

.jc-auth-brand-footer {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.jc-auth-form-area {
  display: flex;
  flex-direction: column;
  padding: 52px 58px 42px;
  background: #fff;
}

.jc-auth-heading {
  margin-bottom: 28px;
}

.jc-auth-heading h1 {
  margin: 0 0 7px;
  color: var(--auth-ink);
  font-size: 28px;
  line-height: 1.3;
}

.jc-auth-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
}

.jc-auth-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 12px;
  background: #f4f3f8;
}

.jc-auth-tab {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #77758b;
  cursor: pointer;
  font-size: 14px;
  transition: .2s ease;
}

.jc-auth-tab.is-active {
  color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 3px 12px rgba(36, 31, 97, .1);
}

.jc-auth-panel {
  display: none;
}

.jc-auth-panel.is-active {
  display: block;
  animation: jc-auth-fade-in .2s ease;
}

@keyframes jc-auth-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.jc-auth-field {
  display: block;
  margin-bottom: 16px;
}

.jc-auth-field > span {
  display: block;
  margin-bottom: 7px;
  color: #45435b;
  font-size: 13px;
  font-weight: 600;
}

.jc-auth-field.is-error .jc-auth-input {
  border-color: #dc6175;
  background: #fff8f9;
  box-shadow: 0 0 0 4px rgba(197, 61, 82, .08);
}

.jc-auth-field > .jc-auth-field-message {
  display: block;
  margin: 6px 0 0;
  color: var(--auth-danger);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.jc-auth-input-wrap {
  position: relative;
}

.jc-auth-input-wrap > i {
  position: absolute;
  left: 16px;
  top: 50%;
  color: #aaa8b8;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.jc-auth-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  outline: none;
  color: var(--auth-ink);
  background: var(--auth-soft);
  font-size: 15px;
  transition: .2s ease;
}

.jc-auth-input:focus {
  border-color: #8b84ed;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(81, 71, 231, .09);
}

.jc-auth-input::placeholder {
  color: #aaa8b8;
}

.jc-auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 9px;
}

.jc-auth-code-row .jc-auth-field {
  margin-bottom: 0;
}

.jc-auth-code-btn {
  align-self: end;
  height: 48px;
  border: 1px solid #dcdaf5;
  border-radius: 10px;
  color: var(--auth-primary);
  background: #faf9ff;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.jc-auth-code-btn:disabled {
  color: #aaa8b8;
  cursor: not-allowed;
  background: #f4f3f7;
}

.jc-auth-submit {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--auth-primary);
  box-shadow: 0 8px 18px rgba(81, 71, 231, .2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: .2s ease;
}

.jc-auth-submit:hover {
  background: var(--auth-primary-dark);
  transform: translateY(-1px);
}

.jc-auth-submit:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}

.jc-auth-third-party {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.jc-auth-wechat-login {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #cfe9d8;
  border-radius: 50%;
  color: #07a85a !important;
  background: #f3fbf6;
  box-shadow: 0 4px 10px rgba(15, 143, 78, .1);
  font-size: 20px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.jc-auth-wechat-login:hover,
.jc-auth-wechat-login:focus-visible {
  color: #fff !important;
  background: #07a85a;
  box-shadow: 0 7px 16px rgba(15, 143, 78, .2);
  outline: 0;
  transform: translateY(-1px);
}

.jc-auth-wechat-login:active {
  transform: scale(.95);
}

.jc-auth-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.7;
}

.jc-auth-agreement input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--auth-primary);
  flex: 0 0 auto;
}

.jc-auth-agreement a,
.jc-auth-footer a {
  color: var(--auth-primary);
}

.jc-auth-message {
  display: none;
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid #f2c6cf;
  border-radius: 8px;
  color: var(--auth-danger);
  background: #fff6f7;
  font-size: 13px;
  line-height: 1.6;
}

.jc-auth-message:not(:empty) {
  display: block;
}

.jc-auth-message.is-success {
  color: var(--auth-success);
  border-color: #b9dfca;
  background: #f3fbf6;
}

.jc-auth-invite-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 11px;
  border: 1px solid #c9e3d7;
  border-radius: 8px;
  color: #236f56;
  background: #f1faf5;
  font-size: 13px;
  font-weight: 700;
}

.jc-auth-invite-notice i {
  color: #2f8a68;
}

.jc-auth-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--auth-muted);
  font-size: 13px;
}

.jc-auth-footer a {
  font-weight: 600;
}

.jc-auth-register .jc-auth-form-area {
  padding-top: 44px;
}

.jc-auth-register .jc-auth-heading {
  margin-bottom: 20px;
}

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

  .jc-auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 520px;
  }

  .jc-auth-brand {
    min-height: 205px;
    padding: 28px 30px;
  }

  .jc-auth-brand-mark {
    margin-bottom: 30px;
  }

  .jc-auth-brand-title {
    font-size: 25px;
  }

  .jc-auth-brand-copy,
  .jc-auth-brand-points {
    display: none;
  }

  .jc-auth-form-area,
  .jc-auth-register .jc-auth-form-area {
    padding: 32px 30px 28px;
  }

  .jc-auth-input,
  .jc-auth-code-btn {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .jc-auth-page {
    display: block;
    padding: 0;
    background: #fff;
  }

  .jc-auth-shell {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .jc-auth-brand {
    min-height: 164px;
    padding: 22px 20px;
  }

  .jc-auth-brand-mark {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .jc-auth-brand-mark img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .jc-auth-brand-title {
    font-size: 23px;
  }

  .jc-auth-brand-footer {
    display: none;
  }

  .jc-auth-form-area,
  .jc-auth-register .jc-auth-form-area {
    padding: 28px 20px 24px;
  }

  .jc-auth-heading h1 {
    font-size: 24px;
  }

  .jc-auth-input,
  .jc-auth-code-btn {
    height: 50px;
  }

  .jc-auth-code-row {
    grid-template-columns: minmax(0, 1fr) 108px;
  }
}
