:root{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  color:#20242c;
  background:#f7f9fa;
  font-synthesis:none;
  --canvas:#f7f9fa;
  --surface:#fff;
  --graphite:#20242c;
  --ink-soft:#50545c;
  --muted:#70747c;
  --line:#d4dce0;
  --accent:#1c88fc;
  --accent-strong:#0f73e6;
  --accent-soft:#f0f8ff;
  --cyan:#1fd4c2;
  --negative:#d83a3a;
  --motion-fast:150ms;
  --motion-ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
body{margin:0}
button,input{font:inherit}
button,a{cursor:pointer}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid rgba(28,136,252,.24);outline-offset:2px}
.auth-page{min-width:980px;min-height:650px;background:var(--canvas)}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(540px,1.08fr) minmax(480px,.92fr)}

.auth-story{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  padding:42px 7vw 32px;
  color:#fff;
  background:
    radial-gradient(circle at 16% 8%,rgba(71,190,255,.28) 0,transparent 30%),
    radial-gradient(circle at 88% 92%,rgba(31,212,194,.18) 0,transparent 34%),
    linear-gradient(145deg,#178bff 0%,#0f73e6 52%,#0755b7 100%);
}
.auth-story::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,transparent 0 48%,rgba(255,255,255,.06) 48% 49%,transparent 49% 100%);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),rgba(0,0,0,.18));
  pointer-events:none;
}
.auth-story::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-205px;
  bottom:-195px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:50%;
  box-shadow:0 0 0 80px rgba(255,255,255,.055),0 0 0 160px rgba(255,255,255,.025);
  pointer-events:none;
}
.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:13px;width:max-content;color:#fff;text-decoration:none}
.auth-brand strong,.auth-brand small{display:block}
.auth-brand strong{font-size:16px;letter-spacing:.02em}
.auth-brand small{margin-top:4px;color:rgba(255,255,255,.82);font-size:11px}
.story-copy{position:relative;z-index:1;max-width:620px;margin:auto 0;padding:56px 0}
.eyebrow{display:inline-flex;padding:7px 12px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:12px;font-weight:600;letter-spacing:.06em;backdrop-filter:blur(8px)}
.story-copy h1{margin:24px 0 18px;font-size:46px;font-weight:700;line-height:1.28;letter-spacing:-1.6px}
.story-copy>p{max-width:560px;margin:0;color:rgba(255,255,255,.86);font-size:15px;line-height:1.9}
.story-points{display:grid;gap:17px;margin-top:42px}
.story-points>div{display:flex;align-items:center;gap:14px}
.point-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid rgba(255,255,255,.26);border-radius:10px;background:rgba(255,255,255,.1)}
.point-icon svg{width:19px;height:19px;fill:none;stroke:#9ff4ec;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.story-points strong,.story-points small{display:block}
.story-points strong{font-size:13px;font-weight:650}
.story-points small{margin-top:4px;color:rgba(255,255,255,.79);font-size:12px}
.auth-story footer{position:relative;z-index:1;color:rgba(255,255,255,.74);font-size:11px;letter-spacing:.04em}

.auth-form-side{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 6vw;
  background:
    radial-gradient(circle at 92% 8%,rgba(31,212,194,.09) 0,transparent 24%),
    radial-gradient(circle at 10% 92%,rgba(28,136,252,.07) 0,transparent 28%),
    var(--canvas);
}
.auth-card{width:100%;max-width:470px;padding:36px 38px;border:1px solid #dce3ea;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 14px 42px rgba(31,48,68,.1)}
.auth-heading{margin-bottom:27px}
.form-badge{color:var(--accent-strong);font-size:12px;font-weight:700}
.auth-heading h2{margin:9px 0 8px;color:var(--graphite);font-size:30px;letter-spacing:-.7px}
.auth-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.bootstrap-note{display:flex;gap:12px;margin-bottom:21px;padding:13px 14px;border:1px solid #cfe3f8;border-radius:10px;background:var(--accent-soft);color:#315f8e}
.bootstrap-note svg{width:22px;height:22px;flex:none;margin-top:1px;fill:none;stroke:var(--accent-strong);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bootstrap-note strong,.bootstrap-note small{display:block}
.bootstrap-note strong{margin-bottom:4px;color:#294d70;font-size:12px}
.bootstrap-note small{color:#63778b;font-size:11px;line-height:1.6}
.bootstrap-note[hidden],#auth-form label[hidden],.field-help[hidden],.form-error[hidden]{display:none}

#auth-form{display:grid;gap:17px}
#auth-form label{display:grid;gap:7px;color:#4b5560;font-size:12px;font-weight:650}
#auth-form input{width:100%;padding:13px 14px;border:1px solid #cbd5df;border-radius:9px;outline:0;background:#fff;color:var(--graphite);font-size:14px;box-shadow:0 1px 2px rgba(31,48,68,.035);transition:border-color var(--motion-fast),box-shadow var(--motion-fast),background-color var(--motion-fast)}
#auth-form input::placeholder{color:#98a1aa}
#auth-form input:hover{border-color:#aebdca}
#auth-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(28,136,252,.12)}
.password-field{position:relative;display:block}
#auth-form .password-field input{padding-right:62px}
.password-field button{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:6px;border:0;border-radius:6px;background:transparent;color:var(--accent-strong);font-size:12px}
.password-field button:hover{background:var(--accent-soft)}
.field-help{margin:-10px 0 0;color:#737d87;font-size:11px;line-height:1.55}
.form-error{margin:-3px 0 0;padding:10px 12px;border:1px solid #f1caca;border-radius:8px;background:#fff0f0;color:var(--negative);font-size:12px;line-height:1.65}
.submit-button{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 16px;border:1px solid var(--accent);border-radius:9px;background:var(--accent);color:#fff;font-size:14px;font-weight:650;box-shadow:0 7px 18px rgba(28,136,252,.2);transition:background-color var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-fast),transform var(--motion-fast) var(--motion-ease)}
.submit-button:hover{transform:translateY(-1px);border-color:var(--accent-strong);background:var(--accent-strong);box-shadow:0 9px 23px rgba(15,115,230,.25)}
.submit-button:active{transform:translateY(0)}
.submit-button:disabled{cursor:wait;opacity:.6;transform:none}
.submit-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.auth-switch{margin:21px 0;text-align:center;color:#737d87;font-size:12px}
.auth-switch a{color:var(--accent-strong);font-weight:650;text-decoration:none}
.auth-switch a:hover{text-decoration:underline;text-underline-offset:3px}
.security-note{display:flex;align-items:center;justify-content:center;gap:7px;padding-top:18px;border-top:1px solid var(--line);color:#5d6873;font-size:12px;line-height:1.55}
.security-note svg{width:14px;height:14px;flex:none;fill:none;stroke:#687f94;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:1120px){
  .auth-shell{grid-template-columns:minmax(490px,1fr) minmax(490px,1fr)}
  .auth-story{padding-right:50px;padding-left:50px}
  .story-copy h1{font-size:38px}
  .auth-form-side{padding-right:45px;padding-left:45px}
  .auth-card{padding:32px}
}

@media(prefers-reduced-motion:reduce){
  button,input{transition:none}
}
