*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{min-height:100%}
body{
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft Yahei",Arial,sans-serif;
  color:#18202c;
  background:#f5f7fa;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer;border:0;background:none;color:inherit}
input,select{color:#18202c}
:root{
  --ink:#18202c;
  --muted:#697587;
  --line:#e3e8f0;
  --soft:#f6f8fb;
  --gold:#b9945e;
  --teal:#008c86;
  --teal-dark:#006f6b;
  --panel:#fff;
  --shadow:0 22px 70px rgba(31,45,64,.10);
}
.auth-page{
  min-height:100vh;
  padding:12px;
  background:
    linear-gradient(118deg,rgba(255,255,255,.84),rgba(242,246,250,.92)),
    repeating-linear-gradient(154deg,rgba(196,215,236,.26) 0 1px,transparent 1px 40px);
}
.auth-board{
  min-height:calc(100vh - 24px);
  max-width:1180px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 20% 68%,rgba(210,178,116,.22),transparent 34%),
    linear-gradient(116deg,#fbfcfd 0%,#f2f5f8 58%,#fbfaf6 100%);
  border:1px solid rgba(226,232,240,.94);
  border-radius:8px;
  box-shadow:var(--shadow);
}
.auth-topbar{
  height:66px;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(226,232,240,.74);
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.auth-brand img{
  width:112px;
  height:auto;
  flex:0 0 auto;
}
.brand-subtitle{
  color:#6a7484;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.language-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  font-weight:700;
  color:#566273;
  white-space:nowrap;
}
.language-link svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.auth-main{
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,392px);
  gap:44px;
  align-items:center;
  padding:54px 56px 36px;
}
.auth-story{
  position:relative;
  min-width:0;
}
.story-kicker{
  color:#687584;
  font-size:13px;
  font-weight:800;
  margin-bottom:12px;
}
.auth-story h1{
  max-width:480px;
  margin:0;
  font-size:39px;
  line-height:1.28;
  font-weight:900;
  letter-spacing:0;
}
.auth-story h1 .gold{color:var(--gold)}
.story-copy{
  max-width:430px;
  margin:18px 0 24px;
  color:#5f6b7b;
  font-size:14px;
  line-height:1.85;
  font-weight:600;
}
.story-points{
  display:grid;
  gap:13px;
  margin:0 0 24px;
  padding:0;
  list-style:none;
}
.story-points li{
  display:flex;
  align-items:center;
  gap:11px;
  color:#2d3745;
  font-size:13px;
  font-weight:800;
}
.point-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  color:var(--teal);
  background:#eef9f8;
  border:1px solid rgba(0,140,134,.16);
  border-radius:8px;
}
.point-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.auth-visual{
  position:relative;
  width:min(520px,100%);
  aspect-ratio:3/2;
  margin-top:8px;
}
.auth-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
  border:1px solid rgba(222,229,238,.76);
  box-shadow:0 18px 42px rgba(31,45,64,.08);
}
.mini-float{
  position:absolute;
  left:18px;
  bottom:24px;
  min-width:150px;
  padding:12px 14px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(226,232,240,.82);
  border-radius:8px;
  box-shadow:0 14px 30px rgba(31,45,64,.10);
  backdrop-filter:blur(16px);
}
.mini-float strong{display:block;font-size:12px;color:#202a37;margin-bottom:8px}
.mini-bars{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;align-items:end;height:36px}
.mini-bars i{display:block;border-radius:99px 99px 2px 2px;background:#8fc7c1}
.mini-bars i:nth-child(1){height:18px}.mini-bars i:nth-child(2){height:27px;background:#cfb27b}.mini-bars i:nth-child(3){height:13px}.mini-bars i:nth-child(4){height:31px}.mini-bars i:nth-child(5){height:22px;background:#cfb27b}
.auth-panel{
  width:100%;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(218,225,234,.95);
  border-radius:8px;
  box-shadow:0 20px 54px rgba(31,45,64,.12);
  padding:31px 28px 24px;
}
.panel-center{text-align:center}
.auth-panel h2{
  margin:0 0 7px;
  color:#202734;
  font-size:24px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:0;
}
.panel-sub{
  margin:0 0 22px;
  color:#6d7788;
  font-size:13px;
  line-height:1.75;
  font-weight:600;
}
.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.auth-tab{
  position:relative;
  padding:10px 8px 12px;
  color:#7a8594;
  font-size:13px;
  font-weight:900;
}
.auth-tab.active{color:var(--teal)}
.auth-tab.active::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:-1px;
  height:3px;
  border-radius:99px;
  background:var(--teal);
}
.field{margin-bottom:13px}
.field label{
  display:block;
  color:#576273;
  font-size:12px;
  font-weight:800;
  margin-bottom:7px;
}
.control{
  position:relative;
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid #dfe6ef;
  border-radius:8px;
  transition:border-color .15s,box-shadow .15s;
}
.control:focus-within{
  border-color:rgba(0,140,134,.72);
  box-shadow:0 0 0 3px rgba(0,140,134,.10);
}
.control svg{
  width:18px;
  height:18px;
  margin-left:13px;
  color:#8a96a7;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 auto;
}
.control input,.control select{
  width:100%;
  height:46px;
  min-width:0;
  padding:0 12px;
  border:0;
  outline:none;
  background:transparent;
  font-size:14px;
  font-weight:650;
}
.control input::placeholder{color:#b7c0cc;font-weight:600}
.control select{appearance:none;-webkit-appearance:none}
.control.split{display:grid;grid-template-columns:90px minmax(0,1fr)}
.control.split select{border-right:1px solid #edf1f6}
.control.with-action{display:grid;grid-template-columns:minmax(0,1fr) 112px}
.control.with-action input{height:46px}
.control-action{
  height:34px;
  margin-right:6px;
  color:var(--teal);
  background:#eef9f8;
  border:1px solid rgba(0,140,134,.18);
  border-radius:6px;
  font-size:12px;
  font-weight:900;
}
.control-action:disabled{color:#96a0ae;background:#f4f6f9;border-color:#e1e7ef;cursor:not-allowed}
.password-toggle{
  flex:0 0 auto;
  margin-right:8px;
  padding:7px 8px;
  border-radius:6px;
  color:#6b7584;
  font-size:12px;
  font-weight:900;
}
.password-toggle:hover{background:#f3f6f8;color:var(--teal)}
.meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:8px 0 18px;
  color:#6a7484;
  font-size:12px;
  font-weight:750;
}
.checkline{display:flex;align-items:flex-start;gap:8px;color:#647083}
.checkline input{width:15px;height:15px;margin-top:2px;accent-color:var(--teal);flex:0 0 auto}
.text-link{color:var(--teal);font-weight:900}
.text-link:hover{text-decoration:underline}
.btn-primary{
  width:100%;
  min-height:46px;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(90deg,#008c86,#006f6b);
  box-shadow:0 12px 24px rgba(0,111,107,.18);
  font-size:14px;
  font-weight:900;
  transition:transform .15s,box-shadow .15s,opacity .15s;
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(0,111,107,.22)}
.btn-primary:disabled{opacity:.64;cursor:not-allowed;transform:none}
.btn-secondary{
  width:100%;
  min-height:44px;
  margin-top:10px;
  border:1px solid #dfe6ef;
  border-radius:8px;
  color:#586475;
  background:#fff;
  font-size:13px;
  font-weight:900;
}
.btn-secondary:hover{background:#f8fafc}
.form-foot{
  margin-top:18px;
  color:#6e7888;
  text-align:center;
  font-size:13px;
  font-weight:750;
}
.agreement{
  margin-top:14px;
  color:#8791a0;
  font-size:11px;
  line-height:1.7;
  text-align:center;
}
.agreement a,.legal-links a{color:#667282}
.agreement a:hover,.legal-links a:hover{color:var(--teal)}
.auth-footer{
  display:flex;
  justify-content:center;
  gap:46px;
  padding:13px 24px 16px;
  color:#7b8594;
  font-size:11px;
  font-weight:700;
}
.notice{
  display:none;
  margin:-6px 0 16px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #d7e4ef;
  background:#f6fafb;
  color:#4f5c6d;
  font-size:12px;
  line-height:1.55;
  font-weight:750;
}
.notice.show{display:block}
.notice.success{border-color:#c8e9de;background:#effaf6;color:#116d58}
.notice.warn{border-color:#ebdfc4;background:#fffaf0;color:#7a5c2e}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.strength{
  margin-top:8px;
  color:#8a95a4;
  font-size:11px;
  font-weight:800;
}
.strength.weak{color:#b85353}.strength.medium{color:#a97931}.strength.strong{color:#188064}
.verify-icon{
  width:92px;
  height:92px;
  margin:0 auto 20px;
  display:grid;
  place-items:center;
  color:var(--teal);
  background:linear-gradient(135deg,#fff,#eff9f8);
  border:1px solid #dfeae9;
  border-radius:50%;
  box-shadow:0 14px 32px rgba(31,45,64,.08);
}
.verify-icon svg{width:48px;height:48px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.step-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-bottom:18px;
}
.step-pill{
  height:7px;
  border-radius:99px;
  background:#e4eaf1;
}
.step-pill.active,.step-pill.done{background:var(--teal)}
.helper-box{
  margin:14px 0 16px;
  padding:13px 14px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
  color:#5e6a7a;
  font-size:12px;
  line-height:1.75;
  font-weight:700;
}
.helper-box b{color:#202a37}
.field-note{
  margin-top:7px;
  color:#8792a1;
  font-size:11px;
  font-weight:750;
  line-height:1.55;
}
.panel-actions{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.panel-actions.inline{
  grid-template-columns:1fr 1fr;
}
.status-copy{
  margin:0 auto 20px;
  color:#667282;
  font-size:13px;
  line-height:1.8;
  font-weight:650;
}
.email-target{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin:4px 0 2px;
  padding:7px 12px;
  color:#202a37;
  background:#f7fafc;
  border:1px solid #e2e8f0;
  border-radius:8px;
  font-size:13px;
  font-weight:900;
  word-break:break-all;
}
.icon-stage{
  width:94px;
  height:94px;
  margin:0 auto 20px;
  display:grid;
  place-items:center;
  color:var(--teal);
  background:linear-gradient(135deg,#fff,#eef9f8 62%,#fbf7ef);
  border:1px solid #dfeae9;
  border-radius:50%;
  box-shadow:0 18px 38px rgba(31,45,64,.09);
}
.icon-stage svg{
  width:48px;
  height:48px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.security-card{
  position:absolute;
  right:20px;
  bottom:20px;
  width:174px;
  padding:14px 15px;
  color:#24303f;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(226,232,240,.86);
  border-radius:8px;
  box-shadow:0 16px 34px rgba(31,45,64,.10);
  backdrop-filter:blur(16px);
}
.security-card strong{
  display:block;
  margin-bottom:9px;
  font-size:12px;
  font-weight:900;
}
.security-card span{
  display:block;
  height:7px;
  margin-top:7px;
  border-radius:99px;
  background:#dce4ec;
}
.security-card span:nth-child(2){width:82%;background:#87c4bf}
.security-card span:nth-child(3){width:56%;background:#cfb27b}
.security-card span:nth-child(4){width:70%}
.strength-bars{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  margin-top:9px;
}
.strength-bars span{
  height:6px;
  border-radius:99px;
  background:#e2e8f0;
}
.strength-bars.weak span:nth-child(-n+1){background:#b85353}
.strength-bars.medium span:nth-child(-n+2){background:#cfb27b}
.strength-bars.strong span:nth-child(-n+4){background:var(--teal)}
.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:1000;
  max-width:min(420px,calc(100vw - 32px));
  padding:12px 16px;
  color:#fff;
  background:rgba(24,32,44,.94);
  border-radius:999px;
  box-shadow:0 18px 46px rgba(31,45,64,.22);
  font-size:13px;
  font-weight:850;
  line-height:1.45;
  opacity:0;
  transform:translate(-50%,14px);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}
.auth-form[hidden],.auth-state[hidden]{display:none!important}
@media (max-width:980px){
  .auth-page{padding:0}
  .auth-board{min-height:100vh;border-radius:0;border-left:0;border-right:0}
  .auth-main{grid-template-columns:1fr;padding:34px 24px 24px}
  .auth-story h1{font-size:31px}
  .auth-visual{max-width:520px}
  .auth-panel{max-width:440px;margin:0 auto}
}
@media (max-width:620px){
  .auth-topbar{height:auto;align-items:flex-start;padding:18px 18px;flex-direction:column}
  .auth-brand img{width:100px}
  .brand-subtitle{white-space:normal}
  .auth-main{gap:26px;padding:28px 18px 18px}
  .auth-story h1{font-size:27px}
  .story-copy{font-size:13px}
  .auth-visual{display:none}
  .auth-panel{padding:25px 20px 21px}
  .form-grid{grid-template-columns:1fr}
  .control.split{grid-template-columns:82px minmax(0,1fr)}
  .control.with-action{grid-template-columns:minmax(0,1fr)}
  .control-action{height:38px;margin:0 6px 6px}
  .meta-row{align-items:flex-start;flex-direction:column}
  .auth-footer{gap:14px;flex-wrap:wrap}
  .panel-actions.inline{grid-template-columns:1fr}
  .security-card{display:none}
}

body.is-en .auth-story h1,
body.is-en .auth-panel h1,
body.is-en .auth-panel h2 {
  overflow-wrap:anywhere;
}
body.is-en .auth-story h1{font-size:36px;line-height:1.14}
body.is-en .panel-actions button,
body.is-en .panel-actions a{
  height:auto;
  min-height:42px;
  white-space:normal;
  line-height:1.25;
  text-align:center;
}
body.is-en .legal-line,
body.is-en .meta-row{line-height:1.55}
@media (max-width:620px){
  body.is-en .auth-story h1{font-size:25px}
}
