/* ============================================================
   乐聊 · 登录 / 注册 / 找回密码  v3
   暖纸色 · 赤陶色 · 衬线标题
   ============================================================ */
:root{
  --auth-bg:#F6EEE4;
  --auth-paper:#FFFBF5;
  --auth-ink:#3B2C31;
  --auth-sub:#8C7464;
  --auth-line:#E7D6C5;
  --auth-brand:#B95538;
  --auth-brand-dark:#9C432C;
  --auth-soft:#FBF3E8;
  --auth-danger:#B23A2E;
}
html body #loginView.auth-view{
  position:fixed!important;inset:0!important;z-index:80!important;
  display:flex!important;align-items:stretch!important;justify-content:center!important;
  overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;
  background:var(--auth-bg)!important;
  color:var(--auth-ink)!important;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;
}
html body #loginView.auth-view.hidden{display:none!important}
.auth-shell{
  width:100%;max-width:1080px;min-height:100vh;margin:0 auto;
  display:grid;grid-template-columns:1.02fr .98fr;
}
/* 左侧品牌 */
.auth-brand{
  position:relative;overflow:hidden;background:#F1E2D2;
  padding:54px 54px 42px;display:flex;flex-direction:column;justify-content:space-between;
}
.auth-brand:before{
  content:"";position:absolute;width:430px;height:430px;border-radius:50%;
  right:-150px;top:-120px;background:radial-gradient(circle at 40% 40%,#EBC9AE,#F1E2D2 70%);
  opacity:.9;
}
.auth-brand:after{
  content:"";position:absolute;left:-80px;bottom:-160px;width:340px;height:340px;
  border:1px solid rgba(185,85,56,.22);border-radius:50%;
}
.auth-brand-top{position:relative;z-index:1}
.auth-mark{display:flex;align-items:center;gap:11px}
.auth-mark img{width:42px;height:42px;border-radius:12px;box-shadow:0 8px 18px rgba(90,47,32,.16)}
.auth-mark .nm{font-family:Georgia,"Songti SC",serif;font-size:22px;font-weight:700;letter-spacing:2px}
.auth-kicker{
  margin-top:56px;font-size:11px;letter-spacing:3px;color:#8F6A57;font-weight:700;
}
.auth-title{
  position:relative;z-index:1;margin:12px 0 0;max-width:390px;
  font-family:Georgia,"Songti SC",serif;font-size:50px;line-height:1.18;font-weight:600;letter-spacing:1px;color:#3B2C31;
}
.auth-title em{font-style:normal;color:var(--auth-brand)}
.auth-brand-copy{
  position:relative;z-index:1;margin-top:18px;max-width:330px;
  font-size:13px;line-height:2;color:#7E6557;
}
.auth-brand-bottom{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.auth-quote{font-family:Georgia,"Songti SC",serif;font-size:13px;line-height:1.9;color:#8A6A59;max-width:280px}
.auth-dots{display:flex;gap:6px;padding-bottom:5px}
.auth-dots i{width:5px;height:5px;border-radius:50%;background:#C9A98F;display:block}
.auth-dots i:nth-child(2){background:var(--auth-brand)}
.auth-dots i:nth-child(3){background:#D9C2AC}

/* 右侧表单 */
.auth-panel{
  background:var(--auth-paper);padding:40px 58px 32px;display:flex;flex-direction:column;
  min-width:0;
}
.auth-panel-inner{width:100%;max-width:390px;margin:auto}
.auth-mobile-brand{display:none}
.auth-tabs{display:flex;gap:26px;border-bottom:1px solid var(--auth-line);margin-bottom:26px}
.auth-tabs button{
  position:relative;background:none;border:0;padding:0 0 12px;margin:0;cursor:pointer;
  font-family:inherit;font-size:15px;font-weight:800;color:#A58B7A;letter-spacing:.5px;
}
.auth-tabs button.on{color:var(--auth-ink)}
.auth-tabs button.on:after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--auth-brand);
}
.auth-head{margin-bottom:22px}
.auth-head h2{
  margin:0;font-family:Georgia,"Songti SC",serif;font-size:27px;line-height:1.3;font-weight:600;letter-spacing:.5px;
}
.auth-head p{margin:7px 0 0;font-size:11.5px;line-height:1.8;color:var(--auth-sub)}
.auth-error{
  display:none;margin:0 0 14px;padding:9px 11px;border:1px solid #E9C3B9;border-radius:9px;
  background:#FDF1ED;color:var(--auth-danger);font-size:11.5px;line-height:1.6;
}
.auth-error.on{display:block}
.auth-error.ok{border-color:#C9D8C4;background:#F1F6EE;color:#4F6B48}
.auth-field{margin-bottom:13px}
.auth-field label{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  margin-bottom:6px;font-size:10.5px;font-weight:800;color:#7D6253;letter-spacing:.6px;
}
.auth-field label span{font-weight:500;color:#AE9684;letter-spacing:0}
.auth-input{position:relative;display:flex;align-items:center}
.auth-input input{
  width:100%;height:46px;padding:0 13px;border:1px solid var(--auth-line);border-radius:10px;
  background:#FFFEFB;color:var(--auth-ink);font-family:inherit;font-size:13px;outline:none;
  transition:border-color .18s,box-shadow .18s;
}
.auth-input input::placeholder{color:#B7A18F}
.auth-input input:focus{border-color:var(--auth-brand);box-shadow:0 0 0 3px rgba(185,85,56,.09)}
.auth-input.has-eye input{padding-right:44px}
.auth-eye{
  position:absolute;right:4px;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border:0;background:none;color:#9E8574;cursor:pointer;
  display:flex;align-items:center;justify-content:center;border-radius:8px;
}
.auth-eye:active{background:#F8EDE1}
.auth-eye svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 18px}
.auth-check{display:flex;align-items:center;gap:7px;font-size:11px;color:#7D6253;cursor:pointer;user-select:none}
.auth-check input{width:14px;height:14px;accent-color:var(--auth-brand);margin:0}
.auth-link{background:none;border:0;padding:0;color:var(--auth-brand);font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}
.auth-link:active{opacity:.7}
.auth-submit{
  width:100%;height:49px;border:0;border-radius:11px;cursor:pointer;
  background:var(--auth-brand);color:#FFF9F1;font-family:inherit;font-size:14px;font-weight:800;letter-spacing:1px;
  box-shadow:0 10px 22px rgba(185,85,56,.18);transition:background .18s,transform .1s;
}
.auth-submit:hover{background:var(--auth-brand-dark)}
.auth-submit:active{transform:translateY(1px)}
.auth-submit:disabled{opacity:.6;cursor:default;box-shadow:none}
.auth-foot{text-align:center;margin-top:16px;font-size:11px;color:#9D8473}
.auth-foot button{color:var(--auth-brand);font-weight:800}
.auth-note{
  margin-top:22px;padding-top:16px;border-top:1px solid #F0E3D5;
  display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#AB9280;line-height:1.7;
}
.auth-note a{color:#8C6B57;text-decoration:none}
.auth-app-link{
  display:inline-flex;align-items:center;gap:5px;color:var(--auth-brand);font-size:10.5px;font-weight:700;
  text-decoration:none;
}
.auth-app-link svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* 注册 */
.auth-reg-head{display:flex;align-items:center;gap:13px;margin-bottom:16px}
.auth-avatar{
  position:relative;width:62px;height:62px;border-radius:50%;background:#F6E6D8;
  border:1px solid #E7CDB9;display:flex;align-items:center;justify-content:center;
  cursor:pointer;overflow:hidden;flex:0 0 62px;
}
.auth-avatar img{width:100%;height:100%;object-fit:cover;display:none}
.auth-avatar .ph{display:flex;flex-direction:column;align-items:center;gap:3px;color:#B28263;font-size:8px;font-weight:700}
.auth-avatar .ph svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.5}
.auth-avatar .edit{
  position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:50%;
  background:var(--auth-brand);color:#fff;display:flex;align-items:center;justify-content:center;
  border:2px solid var(--auth-paper);font-size:11px;line-height:1;
}
.auth-reg-title{min-width:0}
.auth-reg-title b{display:block;font-family:Georgia,"Songti SC",serif;font-size:17px;font-weight:600}
.auth-reg-title span{display:block;margin-top:3px;font-size:10px;color:#A18877;line-height:1.6}
.auth-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.auth-captcha{display:flex;gap:8px;min-width:0}
.auth-captcha .auth-input{flex:1;min-width:0}.auth-captcha input{min-width:0}
.auth-captcha img{width:92px;height:46px;border-radius:9px;border:1px solid var(--auth-line);background:#FFF3F7;object-fit:contain;cursor:pointer;flex:0 0 92px}
.auth-gender{display:flex;gap:8px}
.auth-gender button{
  flex:1;height:40px;border:1px solid var(--auth-line);border-radius:9px;background:#FFFEFB;
  color:#9B8170;font-family:inherit;font-size:11.5px;font-weight:700;cursor:pointer;
}
.auth-gender button.on{border-color:#D8A58E;background:#FBEDE4;color:var(--auth-brand)}
.auth-agree{display:flex;align-items:flex-start;gap:7px;margin:12px 0 14px;font-size:10px;line-height:1.75;color:#947B6B}
.auth-agree input{margin:2px 0 0;width:13px;height:13px;accent-color:var(--auth-brand);flex:0 0 13px}
.auth-agree a{color:#8A5A45;font-weight:700;text-decoration:none}
.auth-invite{margin-top:-4px;margin-bottom:10px}
.auth-invite-toggle{font-size:10px;color:#AE9380;text-decoration:underline;text-underline-offset:3px}
.auth-invite .auth-field{display:none;margin-top:8px}
.auth-invite.open .auth-field{display:block}
.auth-invite.open .auth-invite-toggle{display:none}

/* 找回 */
html body #loginView.mode-forgot .auth-tabs{display:none}
html body #loginView.mode-forgot .auth-panel-inner{padding-top:8px}
.auth-back{
  display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:0;margin:0 0 22px;
  color:#9A7E6B;font-family:inherit;font-size:11px;cursor:pointer;
}
.auth-back svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.auth-hide{display:none!important}

/* 兼容旧登录脚本，不显示 */
#legacyAuth{position:fixed!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

@media (max-width:900px){
  .auth-shell{display:block;min-height:100vh}
  .auth-brand{display:none}
  .auth-panel{min-height:100vh;padding:30px 22px 26px;justify-content:flex-start}
  .auth-panel-inner{max-width:420px;margin:0 auto;padding-top:4px}
  .auth-mobile-brand{display:flex;align-items:center;gap:9px;margin-bottom:30px}
  .auth-mobile-brand img{width:34px;height:34px;border-radius:10px}
  .auth-mobile-brand .nm{font-family:Georgia,"Songti SC",serif;font-size:19px;font-weight:700;letter-spacing:2px}
  .auth-mobile-brand .tag{font-size:9px;color:#A58B79;letter-spacing:1.4px;margin-left:auto}
  .auth-tabs{margin-bottom:22px}
  .auth-head h2{font-size:25px}
  .auth-panel .auth-note{margin-top:18px}
}
@media (max-width:370px){
  .auth-panel{padding-left:16px;padding-right:16px}
  .auth-grid2{gap:8px}
  .auth-captcha img{width:88px;flex-basis:88px}
}
