:root {
  font-family: var(--font-sans);
  color: #1d1d1f;
  background: #fff;
  font-synthesis: style;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.account-header {
  height: 72px;
  border-bottom: 1px solid #e8e8ed;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.account-logo { display: block; width: 124px; }
.account-logo img { display: block; width: 100%; height: auto; }

.header-inner nav { display: flex; gap: 30px; }
.header-inner nav a {
  color: #515154;
  font-size: 15px;
  text-decoration: none;
}
.header-inner nav a:hover, .header-inner nav .is-current { color: #c51f32; }

html[data-theme="dark"] .account-header {
  background: rgba(7,11,16,.88);
  border-color: rgba(255,255,255,.11);
}
html[data-theme="dark"] .account-logo img { content: url("https://insnexsoftware.oss-cn-shanghai.aliyuncs.com/site-assets/assets/insnex-logo-reverse.png"); }
html[data-theme="dark"] .header-inner nav a { color: #e8edf2; }
html[data-theme="dark"] .header-inner nav a:hover { color: #ef4a55; }

.account-main {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 128px);
  padding: 66px 24px 80px;
}

.account-card { width: min(100%, 420px); }

.account-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 30px;
  border: 1px solid #e2e2e7;
  border-radius: 50%;
}

.account-symbol::before,
.account-symbol::after,
.account-symbol span {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.account-symbol::before { width: 44px; height: 44px; border: 1px solid #efb5bc; }
.account-symbol::after { width: 12px; height: 12px; background: #c51f32; }
.account-symbol span { width: 4px; height: 4px; background: #fff; z-index: 1; }
.account-symbol { transition: transform .3s ease, border-color .3s ease; }
.account-symbol::before { transition: transform .35s ease, border-color .3s ease; }
.account-card.is-engaged .account-symbol { transform: scale(1.06); border-color: #e7abb3; }
.account-card.is-engaged .account-symbol::before { transform: scale(.88); border-color: #c51f32; }

.card-heading { padding-top: 12px; text-align: center; }
.step-label { margin: 0 0 12px; color: #a1a1a6; font: 500 9px/1.4 var(--font-sans); letter-spacing: .16em; }
.card-heading h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.card-heading p { margin: 12px 0 0; color: #6e6e73; font-size: 17px; }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0 28px;
  padding: 3px;
  background: #f5f5f7;
  border-radius: 10px;
}

.mode-button {
  padding: 9px 12px;
  color: #6e6e73;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: 500 13px inherit;
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s, transform .18s;
}
.mode-button:active { transform: scale(.98); }

.mode-button.is-active {
  color: #1d1d1f;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.external-login { margin: -8px 0 24px; }
.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  height: 50px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #c7c7cc;
  border-radius: 10px;
  font: 500 14px inherit;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.google-login-button:hover { border-color: #86868b; background: #fafafa; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.google-login-button:active { transform: scale(.99); }
.google-login-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.external-divider { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: #a1a1a6; font-size: 13px; }
.external-divider::before,.external-divider::after { flex: 1; height: 1px; background: #e5e5ea; content: ""; }
.external-divider span { white-space: nowrap; }

.field { margin: 18px 0; }
.field label {
  display: block;
  margin-bottom: 8px;
  color: #3a3a3c;
  font-size: 15px;
  font-weight: 500;
}
.field label span { color: #86868b; font-weight: 400; }
.field-label { display: flex; justify-content: space-between; }
.field-label a { color: #c51f32; font-size: 15px; text-decoration: none; }
.field-state { min-height: 15px; color: #2e7d52; font-size: 14px; }
.field-state.is-error { color: #c51f32; }

input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #c7c7cc;
  border-radius: 10px;
  outline: none;
  font: 15px inherit;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: #a1a1a6; }
input:focus { border-color: #c51f32; box-shadow: 0 0 0 4px rgba(197,31,50,.1); }
input.is-valid { border-color: #52a778; }
input.is-invalid { border-color: #c51f32; }

.input-shell { position: relative; }
.input-shell input { padding-right: 50px; }
.clear-input { position:absolute;top:50%;right:10px;width:30px;height:30px;padding:0;transform:translateY(-50%);color:#86868b;background:#f0f0f2;border:0;border-radius:50%;font:18px/1 inherit;cursor:pointer; }
.clear-input:hover { color:#1d1d1f;background:#e5e5e7; }
.privacy-note { display:flex;gap:8px;align-items:center;margin:17px 2px 0;color:#86868b;font-size:14px;line-height:1.5; }
.privacy-note span { color:#34a853;font-size:10px; }
.account-summary { display:flex;align-items:center;justify-content:space-between;margin:0 0 22px;padding:13px 14px;background:#f5f5f7;border-radius:10px; }
.account-summary span { display:grid;gap:3px;min-width:0; }
.account-summary small { color:#86868b;font-size:13px; }
.account-summary b { overflow:hidden;color:#1d1d1f;font-size:16px;font-weight:500;text-overflow:ellipsis;white-space:nowrap; }
.account-summary button { flex:0 0 auto;padding:6px 8px;color:#c51f32;background:transparent;border:0;border-radius:6px;font:12px inherit;cursor:pointer; }
.account-summary button:hover { background:#fff; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  color: #86868b;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.password-toggle:hover { background: #f5f5f7; }
.password-toggle span { width: 17px; height: 11px; border: 1.5px solid currentColor; border-radius: 50% / 60%; }
.password-toggle span::after { display: block; width: 4px; height: 4px; margin: 2px auto; background: currentColor; border-radius: 50%; content: ""; }
.password-toggle[aria-pressed="true"] span::before { position: absolute; width: 19px; height: 1.5px; margin: 4px 0 0 -1px; transform: rotate(-40deg); background: currentColor; content: ""; }
.field-label { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.code-button { border:0; background:transparent; color:#c51f32; cursor:pointer; font-size:15px; padding:4px 0; }
.code-button:disabled { color:#9aa0a6; cursor:not-allowed; }
.reset-panel { margin-top:22px; }
.text-button { display:block; margin:14px auto 0; border:0; background:transparent; color:#6d7782; cursor:pointer; }

.password-strength { margin-top: 9px; }
.password-strength > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.password-strength i { height: 3px; background: #e5e5ea; border-radius: 3px; transition: background .2s; }
.password-strength[data-score="1"] i:nth-child(-n+1),.password-strength[data-score="2"] i:nth-child(-n+2),.password-strength[data-score="3"] i:nth-child(-n+3),.password-strength[data-score="4"] i:nth-child(-n+4){background:#c51f32}
.password-strength[data-score="3"] i:nth-child(-n+3),.password-strength[data-score="4"] i:nth-child(-n+4){background:#2e8b57}
.password-strength span { display: block; margin-top: 7px; color: #86868b; font-size: 13px; }

.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 20px 0;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
}
.consent input { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; accent-color: #c51f32; }
.consent a { margin: 0 2px; color: #c51f32; text-decoration: none; }
.field-hint { display: block; margin-top: 6px; color: #7f8b98; font-size: 15px; line-height: 1.5; }

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  margin-top: 24px;
  color: #fff;
  background: #c51f32;
  border: 0;
  border-radius: 10px;
  font: 500 14px inherit;
  cursor: pointer;
  transition: background .18s;
}
.submit-button:hover { background: #aa1728; }
.submit-button:disabled { opacity: .55; cursor: default; }
.submit-button b { font-size: 21px; font-weight: 400; }
.submit-button:active:not(:disabled) { transform: scale(.99); }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .button-spinner { display: block; }
.submit-button.is-loading b { display: none; }
.account-card.is-switching { animation: modeSwitch .24s ease; }
.account-card.is-shaking { animation: shake .32s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modeSwitch { 0% { opacity:.55; transform:translateY(5px) } 100% { opacity:1; transform:none } }
@keyframes shake { 0%,100%{transform:none} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.form-message { margin: 12px 0 0; color: #c51f32; font-size: 15px; text-align: center; }
.account-help { margin: 28px 0 0; color: #86868b; font-size: 15px; text-align: center; }
.step-progress { display:flex;justify-content:center;gap:6px;margin-top:24px; }
.step-progress i { width:5px;height:5px;background:#d2d2d7;border-radius:50%;transition:width .2s,background .2s; }
.step-progress i.is-active { width:18px;background:#c51f32;border-radius:5px; }

.account-footer {
  display: flex;
  justify-content: space-between;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 19px 0 24px;
  color: #86868b;
  border-top: 1px solid #e8e8ed;
  font-size: 13px;
}
.account-footer span:last-child { display: flex; gap: 20px; }
.account-footer a { text-decoration: none; }

@media (max-width: 640px) {
  .account-header { height: 62px; }
  .header-inner { width: calc(100% - 32px); }
  .account-logo { width: 108px; }
  .header-inner nav { gap: 16px; }
  .header-inner nav .is-current { display: none; }
  .account-main { min-height: calc(100vh - 118px); padding: 48px 22px 60px; }
  .account-symbol { width: 68px; height: 68px; margin-bottom: 26px; }
  .card-heading h1 { font-size: 28px; }
  .account-footer { width: calc(100% - 32px); gap: 18px; }
}
