/* gr66-auth-modal.css —— 登入／註冊彈窗（components/grhome/GrAuthModal.jsx）在首頁以外的頁面用的樣式。
   產生方式:從 gr66-home.css 抽出所有跟 #authModal 有關的規則（選擇器含 authModal、或含彈窗用到的 class/id），
   原本沒掛 authModal 的選擇器一律加 :where(#authModal) 前綴限定在彈窗裡（:where 不加特異性，層疊順序與首頁一致）;
   用到的 --g-* 色票補在 #authModal 上。不要手改這支:首頁彈窗改了就重跑抽取（scratchpad authmodal/extract.js）。
   Owner 2026-10-23「把所有彈出視窗都換最新的」:內頁原本畫 components/AuthModal.jsx（dg66 版型），改成跟首頁同一顆。 */
#authModal{--g-panel:#ffffff;--g-panel-2:#f7f1e4;--g-gold:#d8a338;--g-text:#2b2013;--g-text-dim:#6b6152;--g-line:#e8e3d3}
:where(#authModal) .img-fluid{max-width:100%;height:auto}
:where(#authModal) .form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}
@media (prefers-reduced-motion:reduce){
:where(#authModal) .form-control{transition:none}
}
:where(#authModal) .form-control[type=file]{overflow:hidden}
:where(#authModal) .form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}
:where(#authModal) .form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}
:where(#authModal) .form-control::-webkit-date-and-time-value{height:1.5em}
:where(#authModal) .form-control::-moz-placeholder{color:#6c757d;opacity:1}
:where(#authModal) .form-control::placeholder{color:#6c757d;opacity:1}
:where(#authModal) .form-control:disabled,:where(#authModal) .form-control[readonly]{background-color:#e9ecef;opacity:1}
:where(#authModal) .form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}
@media (prefers-reduced-motion:reduce){
:where(#authModal) .form-control::file-selector-button{transition:none}
}
:where(#authModal) .form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}
:where(#authModal) .form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}
@media (prefers-reduced-motion:reduce){
:where(#authModal) .form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}
}
:where(#authModal) .form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}
:where(#authModal) textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}
:where(#authModal) .form-floating>.form-control,:where(#authModal) .form-floating>.form-select{height:calc(3.5rem + 2px);padding:1rem .75rem}
:where(#authModal) .form-floating>.form-control::-moz-placeholder{color:transparent}
:where(#authModal) .form-floating>.form-control::placeholder{color:transparent}
:where(#authModal) .form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}
:where(#authModal) .form-floating>.form-control:focus,:where(#authModal) .form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}
:where(#authModal) .form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}
:where(#authModal) .form-floating>.form-control:not(:-moz-placeholder-shown)~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}
:where(#authModal) .form-floating>.form-control:focus~label,:where(#authModal) .form-floating>.form-control:not(:placeholder-shown)~label,:where(#authModal) .form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}
:where(#authModal) .form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}
:where(#authModal) .input-group>.form-control,:where(#authModal) .input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}
:where(#authModal) .input-group>.form-control:focus,:where(#authModal) .input-group>.form-select:focus{z-index:3}
:where(#authModal) .input-group-lg>.btn,:where(#authModal) .input-group-lg>.form-control,:where(#authModal) .input-group-lg>.form-select,:where(#authModal) .input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:.3rem}
:where(#authModal) .input-group-sm>.btn,:where(#authModal) .input-group-sm>.form-control,:where(#authModal) .input-group-sm>.form-select,:where(#authModal) .input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem}
:where(#authModal) .is-valid~.valid-feedback,:where(#authModal) .is-valid~.valid-tooltip,:where(#authModal) .was-validated :valid~.valid-feedback,:where(#authModal) .was-validated :valid~.valid-tooltip{display:block}
:where(#authModal) .form-control.is-valid,:where(#authModal) .was-validated .form-control:valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}
:where(#authModal) .form-control.is-valid:focus,:where(#authModal) .was-validated .form-control:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}
:where(#authModal) .was-validated textarea.form-control:valid,:where(#authModal) textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}
:where(#authModal) .form-select.is-valid,:where(#authModal) .was-validated .form-select:valid{border-color:#198754}
:where(#authModal) .form-select.is-valid:not([multiple]):not([size]),:where(#authModal) .form-select.is-valid:not([multiple])[size="1"],:where(#authModal) .was-validated .form-select:valid:not([multiple]):not([size]),:where(#authModal) .was-validated .form-select:valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}
:where(#authModal) .form-select.is-valid:focus,:where(#authModal) .was-validated .form-select:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}
:where(#authModal) .form-check-input.is-valid,:where(#authModal) .was-validated .form-check-input:valid{border-color:#198754}
:where(#authModal) .form-check-input.is-valid:checked,:where(#authModal) .was-validated .form-check-input:valid:checked{background-color:#198754}
:where(#authModal) .form-check-input.is-valid:focus,:where(#authModal) .was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}
:where(#authModal) .form-check-input.is-valid~.form-check-label,:where(#authModal) .was-validated .form-check-input:valid~.form-check-label{color:#198754}
:where(#authModal) .input-group .form-control.is-valid,:where(#authModal) .input-group .form-select.is-valid,:where(#authModal) .was-validated .input-group .form-control:valid,:where(#authModal) .was-validated .input-group .form-select:valid{z-index:1}
:where(#authModal) .input-group .form-control.is-valid:focus,:where(#authModal) .input-group .form-select.is-valid:focus,:where(#authModal) .was-validated .input-group .form-control:valid:focus,:where(#authModal) .was-validated .input-group .form-select:valid:focus{z-index:3}
:where(#authModal) .is-invalid~.invalid-feedback,:where(#authModal) .is-invalid~.invalid-tooltip,:where(#authModal) .was-validated :invalid~.invalid-feedback,:where(#authModal) .was-validated :invalid~.invalid-tooltip{display:block}
:where(#authModal) .form-control.is-invalid,:where(#authModal) .was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}
:where(#authModal) .form-control.is-invalid:focus,:where(#authModal) .was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}
:where(#authModal) .was-validated textarea.form-control:invalid,:where(#authModal) textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}
:where(#authModal) .form-select.is-invalid,:where(#authModal) .was-validated .form-select:invalid{border-color:#dc3545}
:where(#authModal) .form-select.is-invalid:not([multiple]):not([size]),:where(#authModal) .form-select.is-invalid:not([multiple])[size="1"],:where(#authModal) .was-validated .form-select:invalid:not([multiple]):not([size]),:where(#authModal) .was-validated .form-select:invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}
:where(#authModal) .form-select.is-invalid:focus,:where(#authModal) .was-validated .form-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}
:where(#authModal) .form-check-input.is-invalid,:where(#authModal) .was-validated .form-check-input:invalid{border-color:#dc3545}
:where(#authModal) .form-check-input.is-invalid:checked,:where(#authModal) .was-validated .form-check-input:invalid:checked{background-color:#dc3545}
:where(#authModal) .form-check-input.is-invalid:focus,:where(#authModal) .was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}
:where(#authModal) .form-check-input.is-invalid~.form-check-label,:where(#authModal) .was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}
:where(#authModal) .input-group .form-control.is-invalid,:where(#authModal) .input-group .form-select.is-invalid,:where(#authModal) .was-validated .input-group .form-control:invalid,:where(#authModal) .was-validated .input-group .form-select:invalid{z-index:2}
:where(#authModal) .input-group .form-control.is-invalid:focus,:where(#authModal) .input-group .form-select.is-invalid:focus,:where(#authModal) .was-validated .input-group .form-control:invalid:focus,:where(#authModal) .was-validated .input-group .form-select:invalid:focus{z-index:3}
:where(#authModal) .tab-content>.tab-pane{display:none}
:where(#authModal) .tab-content>.active{display:block}
:where(#authModal) .alert{position:relative;padding:1rem 1rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}
:where(#authModal) .alert-success{color:#0f5132;background-color:#d1e7dd;border-color:#badbcc}
:where(#authModal) .alert-success .alert-link{color:#0c4128}
:where(#authModal) .alert-danger{color:#842029;background-color:#f8d7da;border-color:#f5c2c7}
:where(#authModal) .alert-danger .alert-link{color:#6a1a21}
:where(#authModal).modal{position:fixed;top:0;left:0;z-index:1060;display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}
:where(#authModal).modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}
@media (prefers-reduced-motion:reduce){
:where(#authModal).modal.fade .modal-dialog{transition:none}
}
:where(#authModal).modal.show .modal-dialog{transform:none}
:where(#authModal).modal.modal-static .modal-dialog{transform:scale(1.02)}
:where(#authModal) .m-3{margin:1rem!important}
:where(#authModal) .mb-3{margin-bottom:1rem!important}
:where(#authModal) .text-center{text-align:center!important}
:where(#authModal) .btn-icon{max-width:40px;max-height:40px;padding:4px}
@media (max-width: 990px){
:where(#authModal) .btn-icon{max-width:30px;max-height:28px;padding:2px 5px}
}
@media (max-width: 960px){
:where(#authModal) .tab-content .container{max-width:430px}
}
@media (max-width: 660px){
:where(#authModal) .hotGame .tab-content{min-height:60vh;width:100%;float:inherit;padding-top:12px}
}
:where(#authModal).modal{top:10%}
:where(#authModal) .login_form .form-control{font-size:18px;color:inherit;border-radius:0;border:0;border-bottom:1px solid;background:0 0}
:where(#authModal) .login_form label{margin:10px 6px;font-size:16px;font-weight:600;letter-spacing:2px}
:where(#authModal) .login_form .button-red{color:inherit;letter-spacing:2px;font-weight:400 !important;margin:0 -15px;border-radius:40px;border:solid 1px var(--g-line)}
:where(#authModal) .login_form .button-red:hover{transition:all 0.4s}
:where(#authModal) #notice .tab-content li{margin-bottom:12px;border-bottom:1px dotted var(--g-line)}
:where(#authModal) #notice .tab-content .date{font-size:.8em;color:inherit}
:where(#authModal) section#register{min-height:80vh;padding:60px 40px 120px 40px}
:where(#authModal) .login-else h4,:where(#authModal) .register h4{color:inherit;font-weight:600;font-size:24px;margin-bottom:12px}
.authModal{display:none;position:fixed;z-index:1040;left:0;top:0;width:100%;height:100%}
.authModal .modal-box{position:absolute;transform:translateX(-50%);width:100%;max-width:600px;padding:0px 0px 16px 0px;animation:slideUp 0.4s ease;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}
@media (min-width: 768px){
:where(#authModal) .modal-box{top:10%;left:50%;transform:translate(-50%, -50%);animation:fadeInUp 0.3s ease}
}
@media (max-width: 767px){
:where(#authModal) .modal-box{bottom:0;left:50%;transform:translateX(-50%);border-radius:20px 20px 0 0;animation:slideUp 0.4s ease}
}
.authModal .close_m{position:absolute;right:10px;top:-51px;font-size:2em;line-height:1.1;border-radius:100%;width:40px;height:40px;text-align:center;cursor:pointer}
.authModal .tab-header{display:flex;justify-content:space-around;margin-bottom:15px}
.authModal .tab-btn{flex:1;padding:10px;border:none;color:inherit;cursor:pointer}
.authModal .tab-btn.active{color:inherit;font-weight:bold}
.authModal .tab-content{padding:20px;text-align:center}
.authModal .tab-content input,.authModal .tab-content select{width:100%;padding:10px;margin:10px 0;border:1px solid var(--g-line);border-radius:5px;color:inherit}
.authModal .login,.authModal .register,.authModal .transfer,.authModal .history{width:100%;padding:20px;color:inherit;border:none;border-radius:30px;font-weight:bold;margin-top:20px;cursor:pointer}
.authModal h5{color:inherit;font-weight:400}
.authModal .login-else-box{margin-top:13px;border-top:1px solid var(--g-line);padding:5px 0px}
:where(#authModal) .login-else-box .log-img img{width:50px;margin-right:4px}
#authModalTransfer .modal-box .content{padding:40px 30px 85px 30px;text-align:center}
:where(#authModal) .member-modal .form-control,:where(#authModal) .member-modal .input-group-text,:where(#authModal) .member-modal .form-control:focus{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:inherit;border:0;border-bottom:1px solid var(--g-line);border-radius:0}
:where(#authModal) .member-page .login_form label{margin:10px 6px;font-size:16px;color:inherit;font-weight:600}
:where(#authModal) .page-invite .form-control:focus{color:inherit;border:0;border-bottom:1px solid var(--g-line)}
:where(#authModal) .form-control:disabled{opacity:1}
:where(#authModal) .gamehistory .form-control,:where(#authModal) .gamehistory  .custom-select{display:block;width:100%;padding:.375rem .75rem;font-size:1em;line-height:1.5;color:inherit;background-clip:padding-box;border:none;border-bottom:1px solid var(--g-line);-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;transition:border-color .15s 
ease-in-out, box-shadow .15s 
ease-in-out}
:where(#authModal) .file-input-ajax-new .no-browse .form-control,:where(#authModal) .file-input-new .no-browse .form-control{border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;}
:where(#authModal) .file-zoom-fullscreen.modal{position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;}
:where(#authModal) .member .memberMenu,:where(#authModal) .member .member-content,:where(#authModal) .member .card,:where(#authModal) .member .box,:where(#authModal) .panel,:where(#authModal) .well,:where(#authModal) .modal-content,:where(#authModal) .tab-content,:where(#authModal) .list-group-item{background:var(--g-panel) !important;
  color:var(--g-text);
  border:1px solid var(--g-line) !important;
  border-radius:16px !important;
  box-shadow:0 10px 26px -14px rgba(43,32,19,.35) !important;}
:where(#authModal) .member-page .form-group:has(.form-control),:where(#authModal) .member-page .form-group:has(select),:where(#authModal) .member-page .form-group:has(textarea){display:block; border-bottom:none; padding:0 0 4px; margin-bottom:14px;}
:where(#authModal) .member-page .form-group:has(.form-control) label,:where(#authModal) .member-page .form-group:has(select) label,:where(#authModal) .member-page .form-group:has(textarea) label{display:block; width:auto !important; margin:0 0 6px !important;
  font-weight:700; font-size:14px; color:var(--g-text) !important; white-space:normal;}
:where(#authModal) .btn-login .btn-icon,:where(#authModal) .btn-register .btn-icon{max-width:15px !important; max-height:15px !important; margin:0 !important;}
:where(#authModal) .btn-login .btn-icon,:where(#authModal) .btn-register[href*="logout"] .btn-icon{filter:brightness(0) saturate(100%) invert(30%) sepia(45%) saturate(900%) hue-rotate(5deg) brightness(95%) !important;}
:where(#authModal) .btn-login .btn-icon,:where(#authModal) .btn-register[href*="logout"] .btn-icon{filter:brightness(0) opacity(.7) !important;}
:where(#authModal) .btn-register .btn-icon,:where(#authModal) .btn-login.btn-member .btn-icon{filter:brightness(0) saturate(100%) invert(31%) sepia(72%) saturate(1600%) hue-rotate(203deg) brightness(92%) !important;}
@media (max-width:990px){
:where(#authModal) .btn-login .btn-icon,:where(#authModal) .btn-register .btn-icon{max-width:14px !important; max-height:14px !important; padding:0 3px 0 0 !important;}
}
:where(#authModal) input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),:where(#authModal) select,:where(#authModal) textarea,:where(#authModal) .form-control{background:var(--g-panel-2) !important; border:1px solid var(--g-line) !important;
  border-radius:12px !important; color:var(--g-text) !important;
  min-height:46px; padding:10px 16px !important; font-size:16px !important;}
:where(#authModal) input:focus,:where(#authModal) .form-control:focus{border-color:var(--g-gold) !important; box-shadow:0 0 0 3px rgba(216,163,56,.18) !important; background:#fff !important;}
:where(#authModal) a.btn-register[href*="register"] .btn-icon{filter:brightness(0) opacity(.7) !important;}
:where(#authModal) .pf-range .form-control{flex:1 1 150px; min-width:0;}
.authModal{background:rgba(43,32,19,.42) !important;
  backdrop-filter:blur(10px) saturate(120%);
  -webkit-backdrop-filter:blur(10px) saturate(120%);}
.authModal .modal-box{background:rgba(255,255,255,.82) !important;
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,.75) !important;
  border-radius:22px !important;
  box-shadow:0 24px 60px -20px rgba(43,32,19,.5), inset 0 1px 0 rgba(255,255,255,.9) !important;
  padding:26px 22px 24px !important;
  max-width:420px; width:calc(100% - 32px); margin:auto;}
.authModal .close_m{width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.75); border:1px solid rgba(43,32,19,.12);
  display:flex; align-items:center; justify-content:center;
  color:var(--g-text) !important; font-size:20px; line-height:1; opacity:1 !important;
  top:14px; right:14px;}
.authModal .close_m:hover{background:#fff;}
.authModal .tab-header{display:flex; gap:8px; margin:2px 0 20px; padding:5px;
  background:rgba(43,32,19,.06); border-radius:999px;}
.authModal .tab-btn{flex:1; min-height:42px; border:none !important; border-radius:999px !important;
  background:transparent !important; color:var(--g-text-dim) !important;
  font-size:15px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; gap:6px;}
.authModal .tab-btn img{width:16px; height:16px; filter:brightness(0) opacity(.5);}
.authModal .tab-btn.active{background:#e3eefc !important; color:#1d55a8 !important;
  box-shadow:0 2px 8px -2px rgba(29,85,168,.35);}
.authModal .tab-btn.active img{filter:brightness(0) saturate(100%) invert(31%) sepia(72%) saturate(1600%) hue-rotate(203deg);}
.authModal .form-control{background:rgba(255,255,255,.9) !important; border:1px solid rgba(43,32,19,.14) !important;
  border-radius:12px !important; min-height:48px; font-size:16px !important; margin-bottom:12px;}
.authModal .form-control:focus{border-color:#b9d4f7 !important; background:#fff !important;
  box-shadow:0 0 0 3px rgba(61,132,230,.16) !important;}
.authModal form{margin:0 !important;}
.authModal button.login,.authModal button[type=submit]{width:100%; min-height:50px; border-radius:12px !important;
  background:#e3eefc !important; border:1px solid #b9d4f7 !important;
  color:#1d55a8 !important; font-size:17px; font-weight:800; letter-spacing:.06em;
  box-shadow:none !important; text-shadow:none !important;}
.authModal button.login:hover{background:#d7e7fb !important;}
.authModal a{color:#8a5c06 !important; font-size:14px;}
.authModal .login-else-box{display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap;
  margin-top:18px; padding-top:16px; border-top:1px solid rgba(43,32,19,.1);}
.authModal .login-else-box span{font-size:13.5px; color:var(--g-text-dim);}
.authModal .codeimg{border-radius:8px; margin-bottom:12px;}
.authModal .tab-content{background:transparent !important; border:none !important; box-shadow:none !important;
  padding:0 !important; border-radius:0 !important;}
.authModal .modal-box > .tab-content{margin:0 !important;}
.authModal button[type=submit],.authModal .register,.authModal button.reg{width:100%; min-height:50px; border-radius:12px !important;
  background:#e3eefc !important; border:1px solid #b9d4f7 !important;
  color:#1d55a8 !important; font-size:17px; font-weight:800; letter-spacing:.06em;
  box-shadow:none !important; text-shadow:none !important;}
.authModal button[type=submit]:hover{background:#d7e7fb !important;}
.authModal .codeimg{display:block; margin:0 auto 12px;}
.authModal form > a{display:block; text-align:center; margin:10px 0 0;}
.authModal .modal-box{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  max-height:88vh; overflow-y:auto; -webkit-overflow-scrolling:touch;}
.authModal .fld{display:block; font-size:14px; font-weight:700; color:var(--g-text) !important;
  margin:2px 0 6px;}
.authModal input[type=text],.authModal input[type=password]{width:100%; background:rgba(255,255,255,.9) !important;
  border:1px solid rgba(43,32,19,.14) !important; border-radius:12px !important;
  min-height:48px; padding:10px 14px !important; font-size:16px !important; margin-bottom:12px;}
.authModal .login-else-box.top{margin:0 0 16px; padding:0 0 14px; border-top:none;
  border-bottom:1px solid rgba(43,32,19,.1);}
.authModal .login-else-box img{height:38px; width:auto;}
.authModal .register{margin-top:4px;}
.authModal form > a[href*="Forget"],.authModal form > a[href*="forget"]{display:block; text-align:center; margin:12px auto 0; max-width:220px;
  min-height:44px; line-height:44px; border-radius:12px;
  background:rgba(255,255,255,.75); border:1px solid rgba(43,32,19,.12);
  color:var(--g-text-dim) !important; font-weight:700;}
.authModal .tab-content form{text-align:left !important;}
.authModal .fld{text-align:left !important;}
.authModal .codeimg{display:block; margin:0 0 12px !important; max-width:130px; border-radius:8px;}
.authModal .login-else-box.top{justify-content:flex-start;}
.authModal .modal-box{padding-right:18px !important;}
:where(#authModal) .sms-row{display:flex; gap:8px; align-items:stretch;}
:where(#authModal) .sms-row input{flex:1; min-width:0; margin-bottom:0 !important;}
:where(#authModal) .btn-sms{flex-shrink:0; min-height:48px; padding:0 14px; border-radius:12px;
  background:#faf3e0 !important; border:1px solid #e2cf9a !important;
  color:#6b4f0e !important; font-size:14px; font-weight:800; white-space:nowrap;}
:where(#authModal) .btn-sms:hover{background:#f5ead0 !important;}
.authModal .btn-row{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
:where(#authModal) #register .login-else,:where(#authModal) #register .login-else-box,.authModal .login-else-box{display:grid !important; grid-template-columns:1fr 1fr; gap:10px;
  max-width:440px; margin:14px auto 0 !important;}
:where(#authModal) #register .else-btn,.authModal .login-else-box a{min-height:52px !important; border-radius:14px !important;
  display:flex !important; align-items:center; justify-content:center; gap:9px;
  box-shadow:none !important; backdrop-filter:none !important; margin:0 !important;
  font-weight:800; font-size:14.5px;}
.authModal .login-else-box{grid-template-columns:auto 1fr 1fr; align-items:center;}
.authModal .login-else-box span{grid-column:1; font-size:13.5px; color:var(--g-text-dim);}
.authModal .login-else-box a{background:#eef1f5 !important; border:1px solid #dfe3e8 !important; padding:6px 10px;}
.authModal .login-else-box a:last-child{background:#e4f6ec !important; border-color:#c6ead6 !important;}
.authModal .login-else-box img{height:26px !important; width:auto;}
#authModal .modal-box{height:auto !important; bottom:auto !important;   
  max-height:86vh !important; overflow-y:auto !important;}
#authModal .modal-box,.authModal .modal-box{max-height:75vh !important;}
.authModal .login-else-box{display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  align-items:center;}
.authModal .login-else-box span{grid-column:1 / -1 !important;
  text-align:center; margin-bottom:2px;}
.authModal .login-else-box a{width:100% !important; margin:0 !important; min-height:52px;}
.authModal .login-else-box a img{width:auto !important; height:30px !important; max-height:30px !important;
  object-fit:contain;}
#authModalTransfer .modal-box .content{padding:22px 18px 20px !important; text-align:left !important;}
.authModal .vf-title{text-align:center; font-size:18px; font-weight:900; margin:0 0 6px;}
.authModal .vf-lead{text-align:center; font-size:14px; color:var(--g-text-dim); margin:0 0 16px; line-height:1.8;}
.authModal .vf-err{display:none; margin:10px 0 0; padding:10px 12px; border-radius:10px;
  background:#fdeef0; border:1px solid #f7d3d8; border-left:4px solid #e0798a;
  color:#8d4452; font-size:14px; line-height:1.7;}
.authModal .vf-pane{background:transparent !important; border:none !important; box-shadow:none !important;
  padding:0 !important; border-radius:0 !important; text-align:left;}
.authModal .vf-pane form{text-align:left !important;}
.authModal .modal-box{background:linear-gradient(180deg,#fffdf6,#f7edd6) !important;
  border:1px solid #e2cf9a !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;}
#authModal .modal-box,.authModal .modal-box{padding:16px 18px 16px !important;
  max-height:calc(100vh - 20px) !important;
  max-width:520px;}
.authModal .close_m{top:10px; right:10px; width:30px; height:30px; font-size:18px;}
.authModal .tab-header{margin:0 0 10px; padding:4px;}
.authModal .tab-btn{min-height:38px; font-size:14px;}
.authModal .fld{font-size:13px; margin:0 0 3px; line-height:1.4;}
.authModal .form-control,.authModal input[type=text],.authModal input[type=password],.authModal input[type=tel]{min-height:42px !important; padding:8px 12px !important; font-size:15px !important; margin-bottom:8px !important;}
.authModal #chknum{display:inline-block !important; width:calc(100% - 130px) !important; vertical-align:top;}
.authModal #chkImg.codeimg{display:inline-block !important; vertical-align:top; width:120px; height:42px; object-fit:contain; margin:10px 0 8px 6px !important; border:1px solid #e2cf9a;}
.authModal #regImg.codeimg{display:block !important; width:120px; height:42px; object-fit:cover; margin:0 0 8px !important; border:1px solid #e2cf9a;}
.authModal button.login,.authModal button[type=submit],.authModal .register,.authModal button.reg{min-height:44px; font-size:16px; margin:2px 0 0 !important;}
.authModal button.login.mb-3{margin-bottom:0 !important;}
.authModal form > a[href*="Forget"],.authModal form > a[href*="forget"]{background:none !important; border:none !important; min-height:32px; line-height:32px;
  margin:4px auto 0; font-size:13.5px; max-width:none;}
.authModal .login-else-box{margin-top:8px !important; padding-top:8px !important; gap:6px 8px !important;}
.authModal .login-else-box img{height:30px !important;}
.authModal .login-else-box.top{margin:0 0 10px !important; padding:0 0 8px !important;}
.authModal .btn-sms{min-height:42px;}
@media (min-width:600px){
.authModal #signForm{display:grid; grid-template-columns:1fr 1fr; column-gap:12px;
    grid-auto-flow:row; align-items:start;}
.authModal #signForm input[type=hidden]{display:none;}
.authModal #signForm .fld{margin-top:0; align-self:end;}
.authModal #signForm label[for="u_id"]{grid-column:1 / -1; grid-row:2;}
.authModal #signForm #u_id{grid-column:1 / -1; grid-row:3;}
.authModal #signForm label[for="u_password"]{grid-column:1; grid-row:4;}
.authModal #signForm label[for="u_password2"]{grid-column:2; grid-row:4;}
.authModal #signForm #u_password{grid-column:1; grid-row:5;}
.authModal #signForm #u_password2{grid-column:2; grid-row:5;}
.authModal #signForm label[for="u_name"]{grid-column:1; grid-row:6;}
.authModal #signForm label[for="phone"]{grid-column:2; grid-row:6;}
.authModal #signForm #u_name{grid-column:1; grid-row:7;}
.authModal #signForm #phone{grid-column:2; grid-row:7;}
.authModal #signForm label[for="sms_code"]{grid-column:1 / -1; grid-row:8;}
.authModal #signForm .sms-row{grid-column:1 / -1; grid-row:9;}
.authModal #signForm label[for="checknum"]{grid-column:1 / -1; grid-row:10;}
.authModal #signForm #checknum{grid-column:1; grid-row:11;}
.authModal #signForm #regImg.codeimg{grid-column:2; grid-row:11; align-self:center; margin:0 0 8px !important;}
.authModal #signForm .login-else-box{grid-column:1 / -1; grid-row:1;}
.authModal #signForm #submitBtn{grid-column:1 / -1; grid-row:12;}
}
@media (max-width:599px){
.authModal #signForm{display:block;}
}
:where(#authModal) #notice.modal{display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.6); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  overflow-y:auto; padding:24px 16px;}
:where(#authModal) #notice.modal.is-open{display:block;}
:where(#authModal) #notice .tab-content ul{list-style:none; margin:0; padding:0;}
:where(#authModal) #notice .tab-content li{margin-bottom:12px; padding:12px 14px; border-radius:12px;
  background:#fff; border:1px solid #f1f5f9;}
:where(#authModal) #notice .tab-content li a{text-decoration:none; color:inherit; display:block;}
:where(#authModal) #notice .tab-content li h5{display:flex; align-items:center; margin:0 0 4px; font-size:16px; font-weight:700; color:#2b2013;}
:where(#authModal) #notice .tab-content li h5::before{content:""; width:4px; height:16px; background:#c9a050; margin-right:12px; display:inline-block; flex:0 0 4px;}
:where(#authModal) #notice .tab-content li p{margin:0; font-size:14px; line-height:1.7; color:#5c5140;}
@media (max-width:599px){
:where(#authModal) #notice.modal{padding:16px 12px;}
:where(#authModal) #notice .tab-content li h5{font-size:15px;}
}
:where(#authModal) #notice.modal.is-open{opacity:1 !important;}
:where(#authModal) #notice.modal.is-open .modal-dialog{transform:none !important;}
@media (max-width:599px){
#authModal .modal-box,.authModal .modal-box{top:auto !important;
    bottom:calc(72px + env(safe-area-inset-bottom)) !important;
    left:50% !important;
    width:calc(100% - 24px) !important;
    max-width:none !important;
    max-height:calc(100vh - 160px) !important;
    border-radius:18px !important;
    padding:14px 16px 18px !important;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;}
#authModal .modal-box,.authModal .modal-box{transform:translateX(-50%) !important;
    -webkit-transform:translateX(-50%) !important;}
.authModal .fld{margin:0 0 6px !important;}
.authModal .form-control,.authModal input[type=text],.authModal input[type=password],.authModal input[type=tel]{margin-bottom:14px !important;}
.authModal .sms-row{margin-bottom:14px;}
.authModal #regImg.codeimg{margin:0 0 14px !important;}
.authModal .tab-header{margin:0 0 12px !important;}
.authModal button.login,.authModal .register{margin-top:6px !important;}
.authModal .login-else-box{margin-top:12px !important; padding-top:12px !important;}
}
@media (max-width:599px){
#authModal .modal-box,.authModal .modal-box{padding-top:20px !important;
    max-height:calc(100dvh - 160px) !important;
    max-height:calc(100svh - 150px) !important;}
.authModal .tab-header{margin:8px 0 16px !important; padding:5px !important;}
.authModal .tab-btn{min-height:48px !important; font-size:16px !important;}
.authModal .tab-btn img{width:18px !important; height:18px !important;}
}
.authModal #chknum{display:block !important; width:100% !important;}
.authModal #chkImg.codeimg{display:block !important;
  width:min(248px, 100%) !important; height:auto !important;   
  max-width:100% !important;   
  aspect-ratio:18 / 5; object-fit:contain;
  margin:12px auto 10px !important; padding:4px; background:#fff;}
.authModal #LoginError.alert{font-size:16px !important; font-weight:700 !important;
  padding:10px 12px !important; border-radius:8px !important; margin:4px 0 12px !important;}
.authModal #LoginError.alert-danger{background:#fdecea !important; color:#c0392b !important; border:1px solid #e74c3c !important;
  animation:gr66ShakeErr .4s ease;}
@media (max-width:767px){
#authModal.authModal .modal-box{padding:22px 18px 24px !important; border-radius:20px !important;
    top:50% !important; bottom:auto !important; transform:translate(-50%,-50%) !important;
    max-height:calc(100vh - 32px) !important; max-height:calc(100svh - 32px) !important;}
#authModal.authModal .modal-box .close_m{top:10px !important; right:10px !important;}
#authModal.authModal .modal-box .tab-header{margin:0 0 14px !important; padding:3px !important; min-height:0 !important;}
#authModal.authModal .modal-box .tab-btn{min-height:38px !important; height:38px !important; padding:4px 10px !important; line-height:1.2 !important;}
#authModal.authModal .modal-box .tab-content{padding:0 !important;}
#authModal.authModal .modal-box .login_form.m-3{margin:0 !important;}
#authModal.authModal .modal-box .fld{margin:0 0 6px !important; font-size:14px !important;}
#authModal.authModal .modal-box .form-control,#authModal.authModal .modal-box input[type=text],#authModal.authModal .modal-box input[type=password],#authModal.authModal .modal-box input[type=tel]{min-height:44px !important; height:44px !important; padding:8px 12px !important; margin:0 0 12px !important;}
#authModal.authModal .modal-box button.login,#authModal.authModal .modal-box button[type=submit],#authModal.authModal .modal-box .register{min-height:48px !important; padding:10px 16px !important; margin:4px 0 0 !important;}
#authModal.authModal .modal-box form > a[href*="Forget"],#authModal.authModal .modal-box form > a[href*="forget"]{min-height:28px !important; line-height:28px !important; margin:6px auto 0 !important;}
#authModal.authModal .modal-box .login-else-box{display:flex !important; flex-wrap:nowrap !important; align-items:center !important; justify-content:center !important; gap:10px !important; margin:14px 0 0 !important; padding:14px 0 0 !important;}
#authModal.authModal .modal-box .login-else-box.top{margin:0 0 14px !important; padding:0 0 14px !important; border-top:0 !important; border-bottom:1px solid #e2cf9a;}
#authModal.authModal .modal-box .login-else-box span{display:none !important;}
#authModal.authModal .modal-box .login-else-box a{display:inline-flex !important; align-items:center !important; justify-content:center !important; flex:1 1 0 !important; min-width:0 !important; width:auto !important; min-height:44px !important; padding:6px 8px !important; margin:0 !important;}
#authModal.authModal .modal-box .login-else-box a img,#authModal.authModal .modal-box .login-else-box a svg{height:30px !important; width:auto !important;}
#authModal.authModal .modal-box #LoginForm{display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; column-gap:8px !important; align-items:center;}
#authModal.authModal .modal-box #LoginForm > *{grid-column:1 / -1;}
#authModal.authModal .modal-box #LoginForm #chknum{grid-column:1 !important; display:block !important; width:100% !important; margin:0 0 12px !important;}
#authModal.authModal .modal-box #LoginForm #chkImg.codeimg{grid-column:2 !important; display:block !important; height:44px !important; width:auto !important; aspect-ratio:18/5; max-width:none !important; margin:0 0 12px !important; padding:2px !important; border:1px solid #e2cf9a; border-radius:8px; background:#fff;}
#authModal.authModal .modal-box #LoginForm > a{justify-self:center;}
#authModal.authModal .modal-box #signForm{display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important; column-gap:10px !important; align-items:center;}
#authModal.authModal .modal-box #signForm > *{grid-column:1 / -1;}
#authModal.authModal .modal-box #signForm input[type=hidden]{display:none;}
#authModal.authModal .modal-box #signForm label[for=u_password],#authModal.authModal .modal-box #signForm #u_password,#authModal.authModal .modal-box #signForm label[for=u_name],#authModal.authModal .modal-box #signForm #u_name,#authModal.authModal .modal-box #signForm #checknum{grid-column:1 !important;}
#authModal.authModal .modal-box #signForm label[for=u_password2],#authModal.authModal .modal-box #signForm #u_password2,#authModal.authModal .modal-box #signForm label[for=phone],#authModal.authModal .modal-box #signForm #phone,#authModal.authModal .modal-box #signForm #regImg{grid-column:2 !important;}
#authModal.authModal .modal-box #signForm .login-else-box{grid-row:1;}
#authModal.authModal .modal-box #signForm label[for=u_id]{grid-row:2;}
#authModal.authModal .modal-box #signForm #u_id{grid-row:3;}
#authModal.authModal .modal-box #signForm label[for=u_password],#authModal.authModal .modal-box #signForm label[for=u_password2]{grid-row:4;}
#authModal.authModal .modal-box #signForm #u_password,#authModal.authModal .modal-box #signForm #u_password2{grid-row:5;}
#authModal.authModal .modal-box #signForm label[for=u_name],#authModal.authModal .modal-box #signForm label[for=phone]{grid-row:6;}
#authModal.authModal .modal-box #signForm #u_name,#authModal.authModal .modal-box #signForm #phone{grid-row:7;}
#authModal.authModal .modal-box #signForm label[for=sms_code]{grid-row:8;}
#authModal.authModal .modal-box #signForm .sms-row{grid-row:9; margin:0 0 10px !important;}
#authModal.authModal .modal-box #signForm label[for=checknum]{grid-row:10;}
#authModal.authModal .modal-box #signForm #checknum,#authModal.authModal .modal-box #signForm #regImg{grid-row:11;}
#authModal.authModal .modal-box #signForm .register{grid-row:13;}
#authModal.authModal .modal-box #signForm #regImg.codeimg{display:block !important; height:44px !important; width:auto !important; aspect-ratio:18/5; object-fit:contain !important; justify-self:end; max-width:100% !important; margin:0 0 10px !important; padding:2px !important; border:1px solid #e2cf9a; border-radius:8px; background:#fff;}
#authModal.authModal .modal-box #signForm .fld{margin:0 0 4px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
#authModal.authModal .modal-box #signForm input[type=text],#authModal.authModal .modal-box #signForm input[type=password],#authModal.authModal .modal-box #signForm input[type=tel]{margin:0 0 10px !important;}
#authModal.authModal .modal-box #signForm .sms-row .btn-sms,#authModal.authModal .modal-box #signForm .sms-row button{min-height:44px !important; height:44px !important; padding:0 10px !important;}
#authModal.authModal .modal-box #signForm input::placeholder{font-size:14px;}
}
#authModal.authModal{background:radial-gradient(120% 90% at 50% 40%, rgba(12,9,5,.66) 0%, rgba(12,9,5,.86) 100%) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;}
#authModal.authModal .modal-box{box-shadow:0 30px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(216,163,56,.35) !important;}
@media (min-width:768px){
#authModal.authModal .modal-box .login-else-box span{display:none !important;}
#authModal.authModal .modal-box .login-else-box{display:flex !important; gap:12px !important; align-items:center !important; justify-content:center !important;
    margin:16px 0 0 !important; padding:16px 0 0 !important;}
#authModal.authModal .modal-box .login-else-box a{flex:1 1 0 !important; min-width:0 !important; width:auto !important; min-height:48px !important; padding:8px 10px !important; margin:0 !important;
    display:inline-flex !important; align-items:center !important; justify-content:center !important;}
#authModal.authModal .modal-box .login-else-box a img,#authModal.authModal .modal-box .login-else-box a svg{height:32px !important; width:auto !important;}
#authModal.authModal .modal-box #LoginForm{display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; column-gap:10px !important; align-items:center;}
#authModal.authModal .modal-box #LoginForm > *{grid-column:1 / -1;}
#authModal.authModal .modal-box #LoginForm #chknum{grid-column:1 !important; display:block !important; width:100% !important;}
#authModal.authModal .modal-box #LoginForm #chkImg.codeimg{grid-column:2 !important; display:block !important; height:46px !important; width:auto !important; aspect-ratio:18/5; max-width:none !important;
    margin:0 0 8px !important; padding:2px !important; border:1px solid #e2cf9a; border-radius:8px; background:#fff;}
#authModal.authModal .modal-box #LoginForm > a{justify-self:center;}
}
@keyframes slideUp{
  from {
    transform: translateX(-50%) translateY(100%);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes fadeInUp{
  from {
    transform: translate(-50%, 60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes gr66ShakeErr{ 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
