/* ==========================================================================
   景德镇直聘 - 企业端 登录 / 注册 / 认证 专用样式
   独立全屏布局，不依赖 ent.css 的侧栏框架
   ========================================================================== */

:root{
  --blue:#2f7bee;
  --blue-d:#1f6ad9;
  --blue-l:#eaf2fe;
  --orange:#f7703c;
  --green:#38b04a;
  --txt:#1f2430;
  --txt2:#5f6b7a;
  --txt3:#a2abb8;
  --line:#e9edf3;
  --line2:#f2f4f7;
  --bg:#f1f3f7;
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);color:var(--txt);
  font:13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
h1,h2,h3,h4,p{margin:0;}
img{border:0;}

/* ---------------- 整体骨架 ---------------- */
.auth{display:flex;min-height:100vh;}

/* 左：品牌侧栏 */
.auth-aside{
  width:430px;flex:none;position:relative;overflow:hidden;
  background:linear-gradient(158deg,#17408c 0%,#2f7bee 58%,#4d92f4 100%);
  color:#fff;padding:52px 44px 40px;
  display:flex;flex-direction:column;
}
.auth-aside::after{
  content:'';position:absolute;right:-90px;bottom:-110px;
  width:300px;height:300px;border-radius:50%;
  background:rgba(255,255,255,.07);
}
.auth-aside::before{
  content:'';position:absolute;left:-70px;top:120px;
  width:170px;height:170px;border-radius:50%;
  background:rgba(255,255,255,.05);
}
.auth-aside > *{position:relative;z-index:1;}
.abrand{display:flex;align-items:center;gap:10px;}
.abrand .lg{
  width:34px;height:34px;border-radius:8px;background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
}
.abrand .lg svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.abrand b{font-size:16px;letter-spacing:.5px;font-weight:700;}
.abrand span{font-size:11px;opacity:.72;margin-left:2px;}

.auth-aside h2{margin-top:52px;font-size:27px;line-height:1.42;font-weight:700;letter-spacing:.5px;}
.auth-aside h2 em{font-style:normal;color:#ffd7a8;}
.auth-aside .lead{margin-top:14px;font-size:13px;line-height:1.9;color:rgba(255,255,255,.8);}

.afeat{margin-top:38px;display:flex;flex-direction:column;gap:18px;}
.afeat .it{display:flex;align-items:flex-start;gap:11px;}
.afeat .ic{
  flex:none;width:28px;height:28px;border-radius:7px;
  background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;
}
.afeat .ic svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.afeat b{display:block;font-size:13px;font-weight:600;}
.afeat p{font-size:12px;color:rgba(255,255,255,.72);line-height:1.7;margin-top:2px;}

.auth-aside .afoot{margin-top:auto;padding-top:34px;font-size:12px;color:rgba(255,255,255,.72);line-height:1.9;}
.auth-aside .afoot b{font-size:16px;font-weight:700;color:#fff;letter-spacing:.5px;}

/* 右：表单区 */
.auth-main{
  flex:1;min-width:0;display:flex;align-items:center;justify-content:center;
  padding:44px 24px;background:#f5f7fb;
}
.auth-card{
  width:392px;background:#fff;border-radius:6px;
  padding:30px 34px 26px;box-shadow:0 10px 34px rgba(31,52,90,.09);
}
.auth-card.wide{width:452px;}
.auth-back{
  display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--txt3);
  margin-bottom:14px;cursor:pointer;
}
.auth-back:hover{color:var(--blue);}
.auth-back svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.auth-hd h3{font-size:19px;font-weight:700;letter-spacing:.3px;}
.auth-hd p{margin-top:6px;font-size:12px;color:var(--txt3);line-height:1.7;}

/* 页签 */
.atabs{display:flex;gap:26px;margin:22px 0 4px;border-bottom:1px solid var(--line);}
.atabs a{
  position:relative;padding:0 0 11px;font-size:14px;color:var(--txt2);cursor:pointer;
}
.atabs a.on{color:var(--blue);font-weight:700;}
.atabs a.on::after{
  content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:var(--blue);border-radius:2px;
}

/* 表单 */
.afield{margin-top:16px;position:relative;}
.afield > label{display:block;font-size:12px;color:var(--txt2);margin-bottom:6px;}
.afield > label i{color:var(--orange);font-style:normal;margin-right:2px;}
.ainp{
  width:100%;height:40px;padding:0 12px;border:1px solid #e3e7ee;border-radius:3px;
  background:#fff;color:var(--txt);font-size:13px;font-family:inherit;outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.ainp::placeholder{color:#b7bdc7;}
.ainp:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,123,238,.08);}
.ainp.err{border-color:#f0796a;}
.afield .fhint{margin-top:5px;font-size:12px;color:#e8614a;line-height:1.6;}
.afield .fhint:empty{display:none;}
.afield .fhint a{color:var(--blue);}

.coderow{display:flex;gap:8px;}
.coderow .ainp{flex:1;}
.coderow .code-img{
  flex:none;width:112px;height:40px;display:block;
  border:1px solid #dfe4ec;border-radius:3px;background:#f5f7fa;
  cursor:pointer;object-fit:cover;
}
.coderow .code-img:hover{border-color:var(--blue);}
.coderow .code-btn{
  flex:none;width:112px;height:40px;border:1px solid #dfe4ec;border-radius:3px;
  background:#fff;color:var(--blue);font-size:12px;cursor:pointer;
  transition:border-color .15s,background .15s;
}
.coderow .code-btn:hover:not(:disabled){border-color:var(--blue);background:var(--blue-l);}
.coderow .code-btn:disabled{color:var(--txt3);cursor:default;background:#fafbfd;}

.arow{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:12px;color:var(--txt2);}
.arow label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;}
.arow input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:var(--blue);}
.arow a{color:var(--blue);cursor:pointer;}

.abtn{
  display:flex;align-items:center;justify-content:center;width:100%;height:42px;
  border:0;border-radius:3px;background:var(--blue);color:#fff;
  font-size:14px;font-weight:600;letter-spacing:1px;cursor:pointer;
  transition:background .15s;
}
.abtn:hover:not(:disabled){background:var(--blue-d);}
.abtn:disabled{background:#a8c6f4;cursor:default;}
.abtn.mt{margin-top:22px;}
.abtn.ghost{background:#fff;border:1px solid #dfe4ec;color:var(--txt2);font-weight:400;letter-spacing:0;}
.abtn.ghost:hover:not(:disabled){background:#f7f9fc;border-color:#c9d4e4;}

.amsg{margin-top:12px;font-size:12px;color:#e8614a;line-height:1.7;min-height:0;}
.amsg:empty{display:none;}
.amsg.ok{color:var(--green);}

.auth-sep{
  display:flex;align-items:center;gap:12px;margin:22px 0 0;color:var(--txt3);font-size:12px;
}
.auth-sep::before,.auth-sep::after{content:'';flex:1;height:1px;background:var(--line);}

.auth-alt{display:flex;gap:10px;margin-top:14px;}
.auth-alt a{
  flex:1;height:38px;display:flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #e3e7ee;border-radius:3px;font-size:12px;color:var(--txt2);
  transition:border-color .15s,color .15s;
}
.auth-alt a:hover{border-color:var(--blue);color:var(--blue);}
.auth-alt svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* 协议 */
.aagree{display:flex;align-items:flex-start;gap:7px;margin-top:20px;font-size:12px;color:var(--txt2);line-height:1.8;}
.aagree input{width:13px;height:13px;margin:3px 0 0;accent-color:var(--blue);flex:none;}
.aagree a{color:var(--blue);cursor:pointer;}

/* Toast */
.auth-toast{
  position:fixed;left:50%;top:26px;transform:translateX(-50%);
  padding:9px 18px;border-radius:4px;background:rgba(31,36,48,.9);color:#fff;
  font-size:13px;z-index:99;box-shadow:0 6px 20px rgba(0,0,0,.16);
}
.auth-toast.err{background:rgba(216,74,54,.94);}

/* ---------------- 注册页步骤条 ---------------- */
.asteps{display:flex;align-items:center;gap:0;margin:24px 0 4px;}
.asteps .st{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--txt3);}
.asteps .st .n{
  width:20px;height:20px;border-radius:50%;background:#eef1f6;color:var(--txt3);
  font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:700;
}
.asteps .st.on{color:var(--blue);}
.asteps .st.on .n{background:var(--blue);color:#fff;}
.asteps .st.done .n{background:#dff2e2;color:var(--green);}
.asteps .sp{flex:1;height:1px;background:var(--line);margin:0 10px;min-width:18px;}

/* ---------------- 认证页 ---------------- */
.ver-card{width:600px;background:#fff;border-radius:6px;padding:30px 34px 28px;box-shadow:0 10px 34px rgba(31,52,90,.09);}
.ver-tabs{display:flex;gap:12px;margin-top:20px;}
.ver-tab{
  flex:1;border:1px solid #e3e7ee;border-radius:4px;padding:14px 16px;cursor:pointer;
  transition:border-color .15s,background .15s;
}
.ver-tab:hover{border-color:#b9cdf0;}
.ver-tab.on{border-color:var(--blue);background:#f5f9ff;}
.ver-tab .tt{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--txt);}
.ver-tab .tt svg{width:15px;height:15px;fill:none;stroke:var(--blue);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.ver-tab p{margin-top:5px;font-size:12px;color:var(--txt3);line-height:1.7;}
.ver-tab .rec{
  display:inline-block;margin-left:6px;padding:0 5px;height:17px;line-height:17px;
  border-radius:2px;background:#fff1e9;color:var(--orange);font-size:11px;font-weight:400;
}

.ver-body{margin-top:22px;}
.up-row{display:flex;gap:14px;flex-wrap:wrap;}
.up-box{
  width:132px;height:96px;border:1px dashed #d5dbe4;border-radius:4px;background:#fbfcfe;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  color:#b7bdc7;font-size:12px;cursor:pointer;position:relative;overflow:hidden;
  transition:border-color .15s,color .15s;
}
.up-box:hover{border-color:var(--blue);color:var(--blue);}
.up-box .plus{font-size:22px;font-weight:300;line-height:1;}
.up-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.up-box .mask{
  position:absolute;inset:0;background:rgba(0,0,0,.42);color:#fff;font-size:12px;
  display:none;align-items:center;justify-content:center;
}
.up-box.done:hover .mask{display:flex;}
.up-tip{margin-top:10px;font-size:12px;color:var(--txt3);line-height:1.8;}

.ver-status{
  display:flex;align-items:center;gap:8px;margin-top:18px;padding:11px 14px;
  border-radius:4px;background:#f7f9fc;font-size:12px;color:var(--txt2);
}
.ver-status .bdg{flex:none;padding:1px 8px;border-radius:2px;font-size:11px;}
.ver-status .bdg.wait{background:#fff6e3;color:#c9891a;}
.ver-status .bdg.pass{background:#eaf8ec;color:#2f9e41;}
.ver-status .bdg.fail{background:#feeceb;color:#d84a36;}
.ver-status .bdg.none{background:#eef1f6;color:#7c8797;}

.ver-foot{display:flex;gap:10px;margin-top:24px;}
.ver-foot .abtn{height:42px;}
.ver-foot .abtn.main{flex:1;}

/* 小屏 */
@media (max-width:900px){
  .auth-aside{display:none;}
  .auth-main{align-items:flex-start;padding:28px 16px 40px;}
  .auth-card,.auth-card.wide,.ver-card{width:100%;max-width:460px;padding:24px 20px;}
}
