.opc-auth-overlay{position:fixed;inset:0;z-index:1200;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(26,28,36,.52);backdrop-filter:blur(8px);opacity:0;transition:opacity .24s ease}
.opc-auth-overlay.show{display:flex;opacity:1}
.opc-auth-modal{width:min(440px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid rgba(83,74,183,.12);border-radius:18px;box-shadow:0 24px 70px rgba(33,36,49,.24);position:relative;animation:opcAuthIn .24s ease}
.opc-auth-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border:0;border-radius:50%;background:#f5f6f8;color:#777;font-size:22px;line-height:1;cursor:pointer;transition:background .2s,color .2s}
.opc-auth-close:hover{background:#eeedfe;color:#534ab7}
.opc-auth-head{padding:30px 30px 18px;text-align:center;background:linear-gradient(180deg,#f8f7ff 0%,#fff 86%)}
.opc-auth-mark{width:54px;height:54px;margin:0 auto 14px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#534ab7;color:#fff;font-size:26px;font-weight:800;box-shadow:0 10px 24px rgba(83,74,183,.24)}
.opc-auth-head h2{font-size:22px;font-weight:700;color:#2c2c2a;margin:0 0 6px}
.opc-auth-head p{font-size:13px;line-height:1.6;color:#888;margin:0}
.opc-auth-body{padding:0 30px 30px}
.opc-auth-field{margin-bottom:14px}
.opc-auth-field label{display:block;font-size:13px;font-weight:600;color:#3b3b39;margin-bottom:7px}
.opc-auth-field input{width:100%;height:42px;border:1px solid #e2e4ea;border-radius:10px;background:#fff;padding:0 13px;font-size:14px;color:#2c2c2a;outline:none;transition:border-color .2s,box-shadow .2s}
.opc-auth-field input:focus{border-color:#534ab7;box-shadow:0 0 0 3px rgba(83,74,183,.1)}
.opc-auth-field input::placeholder{color:#b5b7c0}
.opc-auth-methods{display:flex;gap:10px;margin-bottom:16px}
.opc-auth-method{flex:1;height:42px;border:1px solid #e2e4ea;border-radius:10px;background:#f8f8fb;color:#4d4d4d;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}
.opc-auth-method.active{border-color:#534ab7;background:#eeedfe;color:#534ab7}
.opc-auth-row{display:grid;grid-template-columns:1fr 112px;gap:8px}
.opc-auth-input{position:relative}
.opc-auth-input input{padding-right:44px}
.opc-auth-toggle{position:absolute;top:50%;right:12px;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#666;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.opc-auth-toggle:hover{background:rgba(83,74,183,.08)}
.opc-auth-code{height:42px;border:0;border-radius:10px;background:#eeedfe;color:#534ab7;font-size:13px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
.opc-auth-code:hover{background:#534ab7;color:#fff}
.opc-auth-code:disabled{cursor:not-allowed;background:#f0f0f0;color:#aaa}
.opc-pwd-strength{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}
.opc-pwd-strength span{height:4px;border-radius:999px;background:#eceef3}
.opc-pwd-strength .weak{background:#e85c4a}
.opc-pwd-strength .medium{background:#e9a33b}
.opc-pwd-strength .strong{background:#1d9e75}
.opc-pwd-tip{min-height:16px;margin-top:5px;font-size:11px;color:#999}
.opc-auth-agree{display:flex;gap:8px;align-items:flex-start;margin:4px 0 16px;color:#777;font-size:12px;line-height:1.6}
.opc-auth-agree input{margin-top:3px;accent-color:#534ab7}
.opc-auth-agree a,.opc-auth-switch a{color:#534ab7;font-weight:600;cursor:pointer}
.opc-auth-submit{width:100%;height:44px;border:0;border-radius:22px;background:#534ab7;color:#fff;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 12px 22px rgba(83,74,183,.22);transition:transform .2s,box-shadow .2s,background .2s}
.opc-auth-submit:hover{transform:translateY(-1px);background:#453ca0;box-shadow:0 14px 26px rgba(83,74,183,.28)}
.opc-auth-switch{text-align:center;margin-top:15px;font-size:13px;color:#888}
.opc-auth-extra{display:flex;justify-content:space-between;align-items:center;margin:-2px 0 16px;font-size:12px;color:#888}
.opc-auth-extra label{display:flex;gap:6px;align-items:center}
.opc-auth-extra input{accent-color:#534ab7}
.nav-auth{display:flex;align-items:center;gap:8px;margin-left:8px}
.nav-auth a{font-size:13px;font-weight:500;padding:5px 16px;border-radius:20px;transition:all .2s}
.nav-auth .login-link{color:#534AB7;border:1px solid #534AB7}
.nav-auth .login-link:hover{background:#534AB7;color:#fff}
.nav-auth .reg-link{background:#534AB7;color:#fff;border:1px solid #534AB7}
.nav-auth .reg-link:hover{background:#7F77DD;border-color:#7F77DD}
.opc-user-trigger{transition:all .2s}
.opc-user-trigger:hover{border-color:#534AB7;box-shadow:0 2px 10px rgba(83,74,183,.12)}
.opc-user-dropdown{display:none;position:absolute;top:calc(100% + 8px);right:0;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.12);min-width:180px;padding:8px;z-index:200}
.opc-user-dropdown.show{display:block}
.opc-user-dropdown .ud-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;font-size:13px;color:#555;cursor:pointer;transition:background .15s,color .15s}
.opc-user-dropdown .ud-item:hover{background:#f5f3ff;color:#534AB7}
.opc-user-dropdown .ud-item.danger{color:#e53935}
.opc-user-dropdown .ud-divider{height:1px;background:#f0f0f0;margin:4px 8px}
.opc-uname{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opc-auth-toast{display:none;position:fixed;top:76px;left:50%;z-index:1300;transform:translateX(-50%);padding:10px 22px;border-radius:12px;background:#534ab7;color:#fff;font-size:13px;font-weight:600;box-shadow:0 10px 26px rgba(0,0,0,.16);opacity:0;transition:opacity .24s}
@keyframes opcAuthIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:768px){
  .opc-auth-overlay{align-items:flex-end;padding:0}
  .opc-auth-modal{width:100%;max-height:88vh;border-radius:18px 18px 0 0}
  .opc-auth-head{padding:28px 22px 16px}
  .opc-auth-body{padding:0 22px 26px}
}
