:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:#1b2331;
  background:#eff3fa;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  font-size:14px;
  --green:#1149c1;
  --muted:#747f93;
  --line:#dbe3f0;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input {
  font:inherit;
}

button,a,input,summary {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:not-allowed;
  opacity:.55;
}

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

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {
  outline:3px solid #648bde;
  outline-offset:3px;
}

button {
  transition:background .15s,color .15s;
}

svg {
  display:block;
}

h1,h2,p {
  margin:0;
}

.site-shell {
  min-height:100svh;
  display:flex;
  flex-direction:column;
  background:#fff;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark {
  display:inline-flex;
  background:var(--green);
  border-radius:11px;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
}

.brand-mark svg {
  width:34px;
  height:34px;
  fill:none;
  stroke:#fff;
  stroke-width:4.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.brand>span:last-child {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:750;
  letter-spacing:-.7px;
}

.brand b {
  font-size:15px;
  font-weight:550;
  letter-spacing:.6px;
  color:#4d596d;
  border-left:1px solid #d1d7e1;
  padding-left:11px;
}

.header-caption {
  font-size:10px;
  letter-spacing:2.1px;
  color:#7f8ba0;
  font-weight:600;
}

.auth-layout {
  flex:1;
  width:100%;
  min-height:100svh;
  display:grid;
  grid-template-columns:minmax(420px,46%) minmax(0,1fr);
  background:white;
}

.intro {
  background:
    radial-gradient(900px 520px at 8% 0%,#0f2f78 0%,transparent 62%),
    radial-gradient(700px 480px at 100% 100%,#0b2463 0%,transparent 60%),
    #051539;
  color:#f2f6fe;
  padding:clamp(32px,4.4vh,52px) clamp(36px,4.2vw,72px) clamp(26px,3.6vh,40px);
  position:sticky;
  top:0;
  height:100svh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  isolation:isolate;
}

.intro-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.intro .brand>span:last-child {
  color:#fff;
}

.intro .brand b {
  color:#b9c6de;
  border-left-color:#ffffff2e;
}

.intro .brand-mark {
  background:#2563eb;
  box-shadow:0 6px 18px -6px #2563eb99;
}

.intro-top {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  letter-spacing:.5px;
  color:#97a6c1;
}

.intro-dot {
  width:6px;
  height:6px;
  background:#84a4e8;
  border-radius:100%;
}

.intro-copy {
  margin-top:clamp(40px,11vh,130px);
  z-index:1;
}

.intro-kicker {
  font-size:9px;
  letter-spacing:1.8px;
  color:#8f9fba;
}

.intro h2 {
  font-size:clamp(36px,3.3vw,56px);
  font-weight:550;
  line-height:1.5;
  letter-spacing:2.2px;
  margin:15px 0 20px;
}

.intro-copy p {
  font-size:clamp(13px,1vw,15px);
  color:#a0afc8;
  line-height:2.05;
  letter-spacing:.3px;
}

.workspace-art {
  position:relative;
  flex:1;
  min-height:210px;
  width:100%;
  margin:9px 0 6px;
  --art-scale:clamp(1,calc(100vh / 760px),1.45);
  overflow:hidden;
}

.art-grid {
  position:absolute;
  inset:0;
  background-image:linear-gradient(#7e91b30a 1px,transparent 1px),linear-gradient(90deg,#7e91b30a 1px,transparent 1px);
  background-size:25px 25px;
  mask-image:radial-gradient(ellipse,#000,transparent 72%);
}

.art-orbit {
  position:absolute;
  left:50%;
  top:47%;
  border:1px solid #8096bd33;
  border-radius:50%;
  transform:translate(-50%,-50%) rotate(-25deg);
}

.orbit-one {
  width:calc(275px * var(--art-scale));
  height:calc(116px * var(--art-scale));
}

.orbit-two {
  width:calc(180px * var(--art-scale));
  height:calc(180px * var(--art-scale));
  transform:translate(-50%,-50%) rotate(20deg);
}

.art-core {
  position:absolute;
  left:50%;
  top:47%;
  transform:translate(-50%,-50%);
  padding:12px;
  border:1px solid #7b8fb155;
  border-radius:20px;
  background:#0b1f4b;
  box-shadow:0 0 40px #739af00b;
}

.art-core .brand-mark {
  width:48px;
  height:48px;
  background:#82a1e2;
}

.art-core svg {
  stroke:#1c49ab;
  width:37px;
  height:37px;
}

.art-node {
  position:absolute;
  width:12px;
  height:12px;
  border:3px solid #081d49;
  background:#88a8ed;
  border-radius:50%;
  box-shadow:0 0 0 1px #6c83ac66;
}

.art-node {
  margin:-6px 0 0 -6px;
}

.node-one {
  left:calc(50% - 136px * var(--art-scale));
  top:calc(47% + 14px * var(--art-scale));
}

.node-two {
  left:calc(50% + 86px * var(--art-scale));
  top:calc(47% - 78px * var(--art-scale));
  background:#4b71c5;
}

.node-three {
  left:calc(50% + 86px * var(--art-scale));
  top:calc(47% + 50px * var(--art-scale));
  width:9px;
  height:9px;
}

.art-label {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  text-align:center;
  letter-spacing:2px;
  color:#7186aa;
  font-size:10px;
}

.intro-footer {
  display:flex;
  align-items:center;
  gap:9px;
  color:#8195b7;
  font-size:11px;
  border-top:1px solid #798eb329;
  padding-top:22px;
  margin-top:15px;
}

.intro-footer svg {
  width:17px;
  height:17px;
}

.form-panel {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:100svh;
  padding:clamp(28px,4.4vh,52px) clamp(28px,4.6vw,88px) 0;
  background:
    radial-gradient(700px 420px at 100% 0%,#eef3fd 0%,transparent 70%),
    #fff;
}

.form-panel-top {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:38px;
}

.form-brand {
  display:none;
  margin-right:auto;
}

.form-panel-body {
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 0;
}

.form-content {
  width:100%;
  max-width:400px;
  animation:appear .2s ease-out;
}

.eyebrow {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.7px;
  color:var(--green);
  margin-bottom:15px;
}

.form-heading h1 {
  font-size:29px;
  letter-spacing:.5px;
  font-weight:620;
  line-height:1.4;
  margin-bottom:12px;
}

.description {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}

.form-heading {
  margin-bottom:31px;
}

.field {
  margin-bottom:20px;
}

.field label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin-bottom:9px;
  color:#3c475a;
}

.field input {
  width:100%;
  height:47px;
  padding:0 14px;
  border:1px solid #d7dde7;
  background:#fff;
  border-radius:7px;
  color:#1e293d;
  outline:none;
  transition:border .15s,box-shadow .15s;
}

.field input:hover {
  border-color:#9eabc2;
}

.field input:focus {
  border-color:#1d57d3;
  box-shadow:0 0 0 3px #1149c112;
}

.field input:disabled {
  background:#f2f5fb;
}

.field input::placeholder {
  color:#9da5b4;
  font-size:12px;
}

.password-field {
  position:relative;
}

.password-field input {
  padding-right:45px;
}

.password-toggle {
  position:absolute;
  border:0;
  background:transparent;
  right:5px;
  top:5px;
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  color:#838fa5;
  border-radius:5px;
}

.password-toggle:hover {
  background:#ebf1fa;
  color:#164dc2;
}

.password-toggle svg {
  width:18px;
  height:18px;
}

.form-hint {
  font-size:11px;
  color:#818da1;
  display:flex;
  gap:6px;
  align-items:center;
  margin:-2px 0 25px;
}

.tiny-shield {
  font-size:17px;
  color:#657ba0;
}

.button {
  height:46px;
  width:100%;
  border:1px solid transparent;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 17px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.5px;
}

.button span {
  font-size:18px;
  font-weight:400;
}

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

.primary:hover:not(:disabled) {
  background:#1044b6;
}

.secondary {
  border-color:#d8dee8;
  background:#fff;
  color:#2f56a9;
}

.secondary:hover:not(:disabled) {
  background:#f2f4fa;
}

.text-button {
  padding:4px 0;
  border:0;
  background:transparent;
  color:var(--green);
  font-size:12px;
}

.text-button:hover:not(:disabled) {
  text-decoration:underline;
  text-underline-offset:4px;
}

.form-links {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin-top:21px;
  font-size:11px;
  color:#818b9d;
}

.form-bottom {
  margin-top:32px;
  padding-top:20px;
  border-top:1px solid #e5ecf7;
  text-align:center;
  font-size:11px;
  color:#919aaa;
  line-height:1.7;
}

.site-footer {
  padding:18px 0 clamp(22px,3vh,32px);
  display:flex;
  justify-content:space-between;
  gap:12px;
  width:100%;
  border-top:1px solid #edf1f7;
  color:#8e99ab;
  font-size:10px;
  letter-spacing:.5px;
}

.error,.notice {
  font-size:12px;
  line-height:1.7;
  padding:11px 13px;
  border-radius:6px;
  margin-bottom:19px;
  overflow-wrap:anywhere;
}

.error {
  color:#a64436;
  background:#fff2ee;
  border:1px solid #f2d8d0;
}

.notice {
  color:#2355c2;
  background:#ebf0fb;
  border:1px solid #d1dcf3;
}

.back-button {
  font-size:11px;
  color:#738199;
  border:0;
  background:none;
  padding:0 0 22px;
}

.back-button:hover {
  color:var(--green);
}

.verification .form-heading {
  margin-bottom:20px;
}

.enrollment {
  margin-bottom:22px;
}

.qr-frame {
  width:170px;
  height:170px;
  padding:4px;
  border:1px solid #d1ddf1;
  border-radius:10px;
  margin:0 auto 13px;
  background:white;
}

.qr {
  width:100%;
  height:100%;
}

.manual-key {
  font-size:11px;
  text-align:center;
  color:#73819a;
}

.manual-key summary {
  cursor:pointer;
  list-style-position:inside;
  color:#2f5bb9;
}

.manual-key p {
  margin:10px 0;
  line-height:1.7;
}

.manual-key code {
  display:block;
  background:#ebf0fa;
  border-radius:5px;
  padding:9px;
  word-break:break-all;
  font-family:ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.5px;
  color:#2c3f5f;
}

.field .code-input {
  height:53px;
  font-size:24px;
  text-align:center;
  letter-spacing:14px;
  font-family:ui-monospace,SFMono-Regular,monospace;
  padding-left:25px;
}

.field .code-input::placeholder {
  font-size:24px;
  color:#bec8da;
}

.verification-meta {
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:#8493ad;
  font-size:10px;
  margin:-7px 0 20px;
}

.success-mark {
  width:42px;
  height:42px;
  border-radius:50%;
  background:#ecf5e9;
  color:#528152;
  display:grid;
  place-items:center;
  font-size:22px;
  margin-bottom:23px;
}

.recovery-box {
  background:#f1f5fc;
  border:1px solid #d0dbf1;
  padding:17px;
  border-radius:9px;
  position:relative;
}

.field-caption {
  font-size:10px;
  color:#7487a8;
  display:block;
  margin-bottom:10px;
}

.recovery-box code {
  display:block;
  word-break:break-all;
  font-family:ui-monospace,SFMono-Regular,monospace;
  line-height:1.8;
  color:#35579f;
  font-size:15px;
}

.copy-button {
  border:1px solid #cbd7ef;
  background:#fff;
  color:#3c60b0;
  font-size:10px;
  padding:6px 10px;
  border-radius:5px;
  margin-top:13px;
}

.backup-note {
  color:#7f8ba1;
  font-size:11px;
  line-height:1.8;
  margin:14px 0 21px;
}

.checkbox-row {
  display:flex;
  gap:9px;
  align-items:center;
  font-size:12px;
  margin:24px 0;
  color:#4a5871;
  cursor:pointer;
}

.checkbox-row input {
  width:15px;
  height:15px;
  accent-color:var(--green);
  margin:0;
}

.compact .field {
  margin-bottom:15px;
}

.compact .form-heading {
  margin-bottom:22px;
}

.compact .form-bottom {
  margin-top:20px;
}

.account-details {
  margin:25px 0;
}

.account-details>div {
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-bottom:1px solid #e4eaf6;
  padding:14px 0;
  font-size:12px;
}

.account-details dt {
  color:#7a8dad;
}

.account-details dd {
  margin:0;
  overflow-wrap:anywhere;
  text-align:right;
}

.verified-label {
  color:var(--green);
}

.status-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#2e5dc2;
  background:#e3ebfc;
  font-size:10px;
  border-radius:20px;
  padding:6px 10px;
  margin-bottom:23px;
}

.status-pill>span {
  height:5px;
  width:5px;
  border-radius:50%;
  background:#3465cf;
}

.account-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:22px;
}

.danger-text {
  color:#a86958;
}

.loader {
  width:26px;
  height:26px;
  border:2px solid #dae2f5;
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin:40px auto;
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

@keyframes appear {
  from {
    opacity:0;
    transform:translateY(5px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

@media(max-width:1000px) {
  .auth-layout {
    grid-template-columns:minmax(360px,44%) minmax(0,1fr);
  }
  .intro {
    padding:32px;
  }
  .intro-top {
    display:none;
  }
}

@media(max-width:760px) {
  .auth-layout {
    display:block;
  }
  .intro {
    display:none;
  }
  .form-panel {
    padding:22px 22px 0;
  }
  .form-panel-top {
    justify-content:space-between;
  }
  .form-brand {
    display:flex;
  }
  .header-caption {
    font-size:8px;
    letter-spacing:1px;
  }
  .form-panel-body {
    padding:28px 0;
  }
  .form-heading h1 {
    font-size:27px;
  }
  .site-footer {
    padding:12px 0 22px;
    font-size:9px;
  }
  .verification-meta {
    font-size:9px;
  }
  .form-content.compact .field {
    margin-bottom:15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
  }
}
