/* AuthMe 登录与玩家中心，独立文件便于后续接入后端 */
.auth-nav-item { margin-left: 8px !important; }
.auth-trigger { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(7, 16, 12, .38); color: #f4fff0; border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; transition: .2s ease; }
.auth-trigger:hover, .auth-trigger.is-logged-in { border-color: rgba(120,232,82,.75); background: rgba(90,189,60,.17); color: #f4fff0; box-shadow: 0 0 20px rgba(90,189,60,.18); }.auth-account-wrap { position: relative; display: inline-flex; }.auth-menu-chevron { display: none; font-size: 11px; transition: transform .18s ease; }.auth-trigger.is-logged-in .auth-menu-chevron { display: block; }.auth-account-wrap.menu-pinned .auth-menu-chevron { transform: rotate(180deg); }.auth-profile-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 188px; overflow: hidden; border: 1px solid rgba(152,163,208,.35); border-radius: 8px; background: #18182b; box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease; }
.auth-account-wrap.menu-pinned .auth-profile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }.auth-profile-link,.auth-menu-logout { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border: 0; border-top: 1px solid rgba(152,163,208,.18); color: #e3e4ef; background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }.auth-profile-link { border-top: 0; }.auth-profile-link i { color: #a537ea; }.auth-menu-logout { color: #c8cad8; }.auth-menu-logout i { color: #aeb2c2; }.auth-profile-link:hover,.auth-menu-logout:hover { background: rgba(255,255,255,.06); color: #fff; }
.official-site-nav { display: list-item; }
body.auth-modal-open { overflow: hidden; }
.auth-help-modal { position: fixed; inset: 0; z-index: 11100; display: none; align-items: center; justify-content: center; padding: 24px; }
.auth-help-modal.is-open { display: flex; animation: authFade .24s ease both; }
.auth-help-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 4, .76); backdrop-filter: blur(10px); }
.auth-help-panel { position: relative; z-index: 1; width: min(520px, 100%); padding: 36px 38px 30px; border: 1px solid rgba(139, 226, 103, .25); border-radius: 16px; background: linear-gradient(150deg, rgba(24, 49, 32, .98), rgba(8, 19, 14, .98)); box-shadow: 0 24px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset; animation: authPanelUp .3s cubic-bezier(.2,.9,.2,1) both; }
.auth-help-panel h2 { margin: 8px 0 18px; color: #f6fff2; font: 400 29px 'Minecraft', sans-serif; letter-spacing: 1px; }.auth-help-panel h2 span { color: #ffdf5e; }
.auth-help-steps { display: grid; gap: 13px; margin: 0; padding-left: 22px; color: rgba(234,248,229,.8); line-height: 1.75; font-size: 13px; }.auth-help-steps code { display: inline-block; margin-top: 3px; padding: 3px 6px; color: #d7ffca; border-radius: 4px; background: rgba(120,232,82,.12); font-family: Consolas, monospace; font-size: 12px; }.auth-help-note { display: flex; gap: 8px; margin: 22px 0 0; color: #f1d481; font-size: 12px; line-height: 1.5; }.auth-help-note i { margin-top: 2px; }
.auth-modal { position: fixed; inset: 0; z-index: 11000; display: none; align-items: center; justify-content: center; padding: 24px; }
.auth-modal.is-open { display: flex; animation: authFade .24s ease both; }
@keyframes authFade { from { opacity: 0 } to { opacity: 1 } }
.auth-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 4, .76); backdrop-filter: blur(10px); }
.auth-panel { position: relative; z-index: 1; width: min(460px, 100%); max-height: min(860px, calc(100vh - 34px)); overflow: auto; padding: 36px 38px 28px; border: 1px solid rgba(139, 226, 103, .25); border-radius: 16px; background: linear-gradient(150deg, rgba(24, 49, 32, .98), rgba(8, 19, 14, .98)); box-shadow: 0 24px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset; animation: authPanelUp .3s cubic-bezier(.2,.9,.2,1) both; }
@keyframes authPanelUp { from { opacity: 0; transform: translateY(18px) scale(.97) } to { opacity: 1; transform: none } }
.auth-panel::-webkit-scrollbar { width: 5px; }.auth-panel::-webkit-scrollbar-thumb { background: rgba(120,232,82,.45); border-radius: 8px; }
.auth-panel-topline { position: absolute; left: 22px; right: 22px; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #78e852, #ffdf5e, transparent); border-radius: 0 0 5px 5px; }
.auth-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; display: grid; place-items: center; color: rgba(255,255,255,.6); background: transparent; border: 0; cursor: pointer; border-radius: 7px; }.auth-close:hover { color: white; background: rgba(255,255,255,.09); }
.auth-brand-mark { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 17px; background: linear-gradient(135deg, rgba(90,189,60,.25), rgba(255,223,94,.13)); border: 1px solid rgba(120,232,82,.3); box-shadow: 0 10px 30px rgba(0,0,0,.2); }.auth-brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.auth-kicker { display: flex; align-items: center; gap: 8px; color: #9bd889; letter-spacing: 1px; font-size: 11px; text-transform: uppercase; }.auth-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #78e852; box-shadow: 0 0 10px #78e852; }
.auth-panel h2 { margin: 8px 0 7px; color: #f6fff2; font: 400 29px 'Minecraft', sans-serif; letter-spacing: 1px; }.auth-panel h2 span { color: #ffdf5e; }.auth-subtitle { color: rgba(229,247,225,.6); font-size: 13px; margin-bottom: 26px; }
.auth-form { display: grid; gap: 16px; }.auth-field { display: grid; gap: 8px; color: #b7d5b0; font-size: 13px; }.auth-input-wrap { display: flex; align-items: center; gap: 11px; padding: 0 13px; height: 47px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(0,0,0,.22); color: rgba(215,248,205,.55); transition: .2s ease; }.auth-input-wrap:focus-within { border-color: #78e852; box-shadow: 0 0 0 3px rgba(120,232,82,.12); }.auth-input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: white; font: inherit; user-select: text; }.auth-input-wrap input::placeholder { color: rgba(255,255,255,.32); }.auth-password-toggle { border: 0; background: transparent; color: rgba(255,255,255,.48); cursor: pointer; padding: 3px; }.auth-password-toggle:hover { color: #ffdf5e; }
.auth-form-row { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.52); font-size: 12px; }.auth-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }.auth-check input { accent-color: #5abd3c; }.auth-link { border: 0; padding: 0; background: transparent; color: #ffdf5e; font: inherit; cursor: pointer; }.auth-link:hover { text-decoration: underline; }
.auth-submit, .skin-primary { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 8px; min-height: 47px; color: #10240e; background: linear-gradient(135deg, #a7ef7b, #5abd3c); box-shadow: 0 8px 22px rgba(90,189,60,.22); font: 500 14px 'MinecraftTen', sans-serif; cursor: pointer; transition: .2s ease; }.auth-submit:hover, .skin-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-status { min-height: 17px; text-align: center; font-size: 12px; }.auth-status.is-loading { color: #dbe59b; }.auth-status.is-success { color: #a7ef7b; }.auth-status.is-error { color: #ff9e9e; }.auth-footer-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; color: rgba(255,255,255,.4); font-size: 11px; }.auth-footer-note i { color: #9bd889; }
.auth-dashboard { margin-top: 2px; }.account-sidebar { display: none; }.account-main-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }.account-kicker { color: #9bd889; letter-spacing: 1.4px; font-size: 10px; }.account-main h3 { margin: 6px 0; color: white; font: 400 24px 'Minecraft', sans-serif; }.account-main-head p { color: rgba(255,255,255,.56); font-size: 12px; }.account-close-inline { border: 0; color: rgba(255,255,255,.55); background: transparent; cursor: pointer; font-size: 18px; }.skin-grid { display: grid; gap: 15px; }.skin-preview, .skin-upload { padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.045); }.skin-preview-head { display: flex; justify-content: space-between; color: #e7f8e0; font-size: 13px; }.skin-preview-head b { color: #9bd889; font-size: 11px; font-weight: 400; }.skin-stage { height: 230px; display: grid; place-items: center; margin: 13px 0; border-radius: 7px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 8px, transparent 8px 16px), rgba(0,0,0,.23); }.mc-character { position: relative; width: 85px; height: 172px; filter: drop-shadow(10px 13px 0 rgba(0,0,0,.16)); }.mc-head { position: absolute; left: 16px; top: 0; width: 54px; height: 54px; background: linear-gradient(135deg, #edc7b0 0 42%, #613f37 43% 100%); border: 5px solid #2a2527; box-shadow: inset -7px -6px rgba(0,0,0,.13); }.mc-head::after { content: ''; position: absolute; left: 33px; top: 23px; width: 7px; height: 7px; background: #29212a; box-shadow: -19px 0 #29212a; }.mc-body { position: absolute; left: 9px; top: 55px; width: 68px; height: 72px; background: linear-gradient(90deg, #fae4d8 0 18%, #f4a9cb 18% 36%, #faf6ee 36% 74%, #df91bb 74%); border: 5px solid #2a2527; }.mc-body::after { content: ''; position: absolute; inset: 14px 17px; background: rgba(243,177,215,.4); border: 2px solid rgba(255,255,255,.6); }.mc-legs { position: absolute; left: 13px; top: 125px; width: 59px; height: 47px; background: linear-gradient(90deg, #e9bfac 0 44%, #e8d7ce 44% 56%, #c59d9f 56%); border: 5px solid #2a2527; }.skin-primary { width: 100%; min-height: 39px; font-size: 12px; }.skin-upload h4 { color: white; font: 400 16px 'Minecraft', sans-serif; margin-bottom: 8px; }.skin-upload p { color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.6; margin-bottom: 13px; }.skin-dropzone { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 6px; color: rgba(255,255,255,.7); border: 1px dashed rgba(167,239,123,.42); border-radius: 8px; background: rgba(90,189,60,.05); cursor: pointer; text-align: center; }.skin-dropzone:hover { background: rgba(90,189,60,.1); border-color: #a7ef7b; }.skin-dropzone i { color: #a7ef7b; font-size: 24px; }.skin-dropzone span { font-size: 12px; }.skin-dropzone small { color: rgba(255,255,255,.35); font-size: 10px; }.skin-dropzone input { display: none; }.skin-tip { display: flex; gap: 8px; margin-top: 12px; padding: 10px; color: #e8cd77; background: rgba(108,81,3,.22); border: 1px solid rgba(232,205,119,.2); border-radius: 6px; font-size: 10px; line-height: 1.5; }.skin-tip i { padding-top: 2px; }
@media (min-width: 780px) { .auth-panel:has(.auth-dashboard:not([hidden])) { width: min(520px, calc(100vw - 48px)); padding: 28px; }.auth-dashboard { display: block; }.auth-dashboard[hidden] { display: none; }.account-sidebar { display: flex; flex-direction: column; align-items: stretch; padding: 18px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(0,0,0,.17); }.account-sidebar strong { color: white; font-size: 14px; }.account-tag { margin-top: 5px; color: #9bd889; font-size: 10px; }.account-nav { width: 100%; display: grid; gap: 7px; margin-top: 20px; }.account-nav button, .account-logout { display: flex; align-items: center; gap: 9px; padding: 10px; color: rgba(255,255,255,.6); border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }.account-nav button.active, .account-nav button:hover { color: white; background: linear-gradient(90deg, rgba(90,189,60,.5), rgba(90,189,60,.08)); }.account-logout { margin-top: 14px; width: 100%; color: rgba(255,255,255,.42); }.account-logout:hover { color: #ff9e9e; background: rgba(255,80,80,.08); }.skin-grid { grid-template-columns: 1.1fr .9fr; }.skin-stage { height: 268px; } }
@media (max-width: 779px) { .auth-nav-item { margin-left: 0 !important; }.auth-trigger { font-size: 13px; }.auth-panel { padding: 31px 22px 23px; }.auth-panel h2 { font-size: 24px; }.auth-footer-note { align-items: flex-start; line-height: 1.5; }.auth-dashboard[hidden] { display: none; } }
