.auth-modal,.auth-page{--auth-bg: #f5f3f0;--auth-surface: #ffffff;--auth-surface-light: #faf9f7;--auth-cream: #f5f3f0;--auth-cream-dark: #ebe8e4;--auth-accent: #4A6FA5;--auth-accent-hover: #3D5A8A;--auth-accent-soft: rgba(74, 111, 165, .1);--auth-sage: #6B9080;--auth-blue: #5A8FAF;--auth-plum: #9B7E9E;--auth-text: #2c2824;--auth-text-muted: #6b6560;--auth-text-tertiary: #9a958c;--auth-border: rgba(44, 40, 36, .08);--auth-border-light: rgba(44, 40, 36, .12);--auth-error: #d45f5f;--auth-success: #6B9080;--auth-radius: 12px;--auth-radius-lg: 16px;--auth-font-serif: "Instrument Serif", Georgia, serif;--auth-font-sans: "DM Sans", -apple-system, sans-serif;--auth-ease: cubic-bezier(.16, 1, .3, 1)}[data-theme=dark] .auth-modal,[data-theme=dark] .auth-page{--auth-bg: #14120b;--auth-surface: #1b1913;--auth-surface-light: #24221a;--auth-cream: #f5f0e8;--auth-cream-dark: #e8e0d4;--auth-accent: #4A6FA5;--auth-accent-hover: #E09570;--auth-accent-soft: rgba(74, 111, 165, .15);--auth-text: #f5f0e8;--auth-text-muted: #9a958c;--auth-text-tertiary: #6b6560;--auth-border: rgba(245, 240, 232, .08);--auth-border-light: rgba(245, 240, 232, .15)}.auth-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:#000000d9;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);opacity:0;visibility:hidden;transition:all .4s var(--auth-ease)}.auth-modal.active{opacity:1;visibility:visible}.auth-modal .auth-container{transform:translateY(20px) scale(.96);transition:transform .4s var(--auth-ease)}.auth-modal.active .auth-container{transform:translateY(0) scale(1)}.auth-page{min-height:100vh;display:flex;align-items:flex-start;justify-content:center;background:var(--auth-bg);padding:80px 24px 40px;position:relative;overflow:hidden}.auth-switcher-group{position:absolute;top:24px;right:24px;z-index:100;display:flex;align-items:center;gap:2px;padding:4px;background:var(--auth-bg);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-radius:22px;box-shadow:var(--shadow-sm);transition:all .3s ease}.auth-switcher-group:hover{box-shadow:var(--shadow-md)}.auth-switcher-group .language-switcher{height:28px!important;padding:0 10px!important;border-radius:14px!important;background:transparent!important;border:none!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;transition:all .2s ease;color:var(--auth-text-muted)!important;font-family:var(--auth-font-sans);font-size:13px!important;font-weight:500!important}.auth-switcher-group .language-switcher:hover{background:var(--auth-accent-soft)!important;color:var(--auth-text)!important}.auth-switcher-group .language-switcher .lang-icon{display:none!important}.auth-theme-toggle{width:28px;height:28px;border-radius:50%;background:transparent;border:none;color:var(--auth-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.auth-theme-toggle:hover{background:var(--auth-accent-soft);color:var(--auth-text);transform:scale(1.05)}.auth-theme-toggle:active{transform:scale(.92)}.auth-theme-toggle svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5;fill:none}.auth-page .lang-icon{width:18px;height:18px;opacity:.8;transition:all .25s ease}.auth-page .language-switcher:hover .lang-icon{opacity:1;transform:rotate(15deg)}.auth-page .lang-text{font-weight:600;letter-spacing:.5px}.auth-page:before{content:"";position:absolute;top:-50%;right:-30%;width:800px;height:800px;background:radial-gradient(circle,rgba(74,111,165,.08) 0%,transparent 70%);pointer-events:none}.auth-page:after{content:"";position:absolute;bottom:-50%;left:-30%;width:600px;height:600px;background:radial-gradient(circle,rgba(107,144,128,.06) 0%,transparent 70%);pointer-events:none}.auth-container{width:100%;max-width:440px;position:relative;z-index:1}.auth-close{position:absolute;top:-48px;right:0;width:40px;height:40px;border:1px solid var(--auth-border-light);border-radius:50%;background:transparent;color:var(--auth-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.auth-close:hover{border-color:var(--auth-accent);color:var(--auth-accent);background:var(--auth-accent-soft)}.auth-close svg{width:18px;height:18px}.auth-page .auth-close{display:none}.auth-card{background:var(--auth-surface);border:1px solid var(--auth-border);border-radius:var(--auth-radius-lg);padding:36px 32px;position:relative;overflow:hidden;box-shadow:0 4px 24px #2c28240f}.auth-card:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--auth-accent),transparent);opacity:.6}.auth-brand{text-align:center;margin-bottom:24px}.auth-brand-icon{width:56px;height:56px;margin:0 auto 12px;background:linear-gradient(135deg,var(--auth-accent) 0%,var(--auth-accent-hover) 100%);border-radius:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px #4a6fa540}.auth-brand-icon svg{width:28px;height:28px;stroke:#fff}.auth-brand-title{font-family:var(--auth-font-sans);font-size:20px;font-weight:600;color:var(--auth-text);margin-bottom:4px;letter-spacing:-.02em}.auth-brand-subtitle{font-size:11px;font-weight:500;color:var(--auth-text-muted);letter-spacing:.12em;text-transform:uppercase}.auth-header{text-align:center;margin-bottom:20px}.auth-title{font-family:var(--auth-font-serif);font-size:28px;font-weight:400;color:var(--auth-text);margin-bottom:8px}.auth-title em{font-style:italic;color:var(--auth-accent)}.auth-desc{font-size:14px;font-weight:400;color:var(--auth-text-muted);line-height:1.6}.auth-social{display:flex;flex-direction:column;gap:10px;margin-top:20px;padding-top:20px;border-top:1px solid var(--auth-border)}.auth-social-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 16px;background:var(--auth-surface-light);border:1px solid var(--auth-border-light);border-radius:var(--auth-radius);color:var(--auth-text);font-family:var(--auth-font-sans);font-size:14px;font-weight:500;cursor:pointer;transition:all .3s var(--auth-ease)}.auth-social-btn:hover{border-color:var(--auth-text-tertiary);background:var(--auth-cream);transform:translateY(-1px)}.auth-social-btn svg{width:20px;height:20px;flex-shrink:0}.auth-social-btn.google svg{color:#4285f4}.auth-social-btn.google:hover{border-color:#4285f4;background:#4285f414}.auth-social-btn.wechat svg{color:#07c160}.auth-social-btn.wechat:hover{border-color:#07c160;background:#07c16014}.auth-divider{display:flex;align-items:center;gap:16px;margin-bottom:20px}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:var(--auth-border)}.auth-divider span{font-size:12px;font-weight:400;color:var(--auth-text-muted);letter-spacing:.05em;text-transform:uppercase}.auth-form{display:flex;flex-direction:column;gap:14px}.auth-field{display:flex;flex-direction:column;gap:8px}.auth-label{font-size:12px;font-weight:500;color:var(--auth-text-muted);letter-spacing:.05em;text-transform:uppercase}.auth-input-wrapper{position:relative}.auth-input{width:100%;padding:14px 16px;background:var(--auth-surface-light);border:1px solid var(--auth-border);border-radius:var(--auth-radius);color:var(--auth-text);font-family:var(--auth-font-sans);font-size:15px;transition:all .3s ease}.auth-input::placeholder{color:var(--auth-text-muted);opacity:.6}.auth-input:focus{outline:none;border-color:var(--auth-accent);background:var(--auth-accent-soft)}.auth-input-wrapper.has-icon .auth-input{padding-left:48px}.auth-input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--auth-sage);pointer-events:none;transition:color .3s ease}.auth-input:focus~.auth-input-icon,.auth-input-wrapper:focus-within .auth-input-icon{color:var(--auth-accent)}.auth-password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--auth-text-muted);cursor:pointer;transition:color .3s ease}.auth-password-toggle:hover{color:var(--auth-accent)}.auth-password-toggle svg{width:18px;height:18px}.auth-checkbox-row{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.auth-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer}.auth-checkbox input{display:none}.auth-checkbox-mark{width:18px;height:18px;border:1px solid var(--auth-border-light);border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.auth-checkbox input:checked+.auth-checkbox-mark{background:var(--auth-accent);border-color:var(--auth-accent)}.auth-checkbox-mark svg{width:12px;height:12px;color:var(--auth-bg);opacity:0;transform:scale(.5);transition:all .2s ease}.auth-checkbox input:checked+.auth-checkbox-mark svg{opacity:1;transform:scale(1)}.auth-checkbox span{font-size:13px;color:var(--auth-text-muted)}.auth-forgot{font-size:13px;color:var(--auth-text-muted);text-decoration:none;transition:color .3s ease}.auth-forgot:hover{color:var(--auth-accent)}.auth-submit{width:100%;padding:16px 24px;margin-top:8px;background:linear-gradient(135deg,#4a6fa5,#3d5a8a);border:none;border-radius:var(--auth-radius);color:#fff;font-family:var(--auth-font-sans);font-size:15px;font-weight:500;letter-spacing:.02em;cursor:pointer;transition:all .4s var(--auth-ease);position:relative;overflow:hidden;box-shadow:0 4px 12px #4a6fa540}.auth-submit:hover{background:linear-gradient(135deg,#3d5a8a,#b36a48);transform:translateY(-2px);box-shadow:0 8px 24px #4a6fa559}.auth-submit:active{transform:translateY(0)}.auth-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}.auth-submit.loading{color:transparent;pointer-events:none}.auth-submit.loading:after{content:"";position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid var(--auth-bg);border-top-color:transparent;border-radius:50%;animation:auth-spin .8s linear infinite}@keyframes auth-spin{to{transform:rotate(360deg)}}.auth-footer{text-align:center;margin-top:20px;padding-top:16px;border-top:1px solid var(--auth-border)}.auth-footer-text{font-size:14px;color:var(--auth-text-muted)}.auth-footer-link{color:var(--auth-accent);text-decoration:none;font-weight:500;cursor:pointer;transition:color .3s ease}.auth-footer-link:hover{color:var(--auth-accent-hover);text-decoration:underline}.auth-message{padding:12px 16px;border-radius:var(--auth-radius);font-size:13px;text-align:center;margin-top:16px;animation:auth-fade-in .3s ease}@keyframes auth-fade-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.auth-message.error{background:#e573731a;border:1px solid rgba(229,115,115,.3);color:var(--auth-error)}.auth-message.success{background:#88b04b1a;border:1px solid rgba(136,176,75,.3);color:var(--auth-success)}.auth-view{display:none}.auth-view.active{display:block;animation:auth-slide-in .4s var(--auth-ease)}@keyframes auth-slide-in{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.auth-back{position:absolute;top:32px;left:32px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--auth-text-muted);text-decoration:none;transition:color .3s ease;z-index:10}.auth-back:hover{color:var(--auth-accent)}.auth-back svg{width:16px;height:16px;color:var(--auth-sage);transition:color .3s ease}.auth-back:hover svg{color:var(--auth-accent)}@media (max-width: 768px){.auth-page{padding:60px 20px 32px;padding-top:max(60px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom))}.auth-modal{padding:40px 20px 20px;align-items:flex-start}.auth-container{max-width:100%}.auth-card{padding:40px 32px}.auth-brand{margin-bottom:32px}.auth-brand-icon{width:52px;height:52px}.auth-back{top:20px;left:20px}.auth-close{top:-44px}}@media (max-width: 480px){.auth-page{padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));min-height:100dvh;align-items:flex-start;padding-top:60px}.auth-modal{padding:50px 16px 16px;align-items:flex-start}.auth-modal .auth-container,.auth-modal.active .auth-container{transform:none}.auth-card{padding:24px 20px;border-radius:var(--auth-radius)}.auth-brand{margin-bottom:16px}.auth-brand-icon{width:40px;height:40px;margin-bottom:10px}.auth-brand-icon svg{width:20px;height:20px}.auth-brand-title{font-size:18px}.auth-brand-subtitle{font-size:10px}.auth-header{margin-bottom:16px}.auth-title{font-size:22px}.auth-desc{font-size:12px;margin-top:4px}.auth-social{gap:8px;margin-top:16px;padding-top:16px}.auth-social-btn{padding:12px;font-size:13px;min-height:44px}.auth-divider{margin-bottom:16px}.auth-divider span{font-size:10px;white-space:nowrap}.auth-form{gap:12px}.auth-field{gap:4px}.auth-label{font-size:11px}.auth-input{padding:14px;font-size:16px;min-height:48px}.auth-input-wrapper.has-icon .auth-input{padding-left:44px}.auth-password-toggle{width:40px;height:40px;right:4px}.auth-checkbox-row{flex-direction:row;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}.auth-checkbox{min-height:36px;padding:4px 0}.auth-checkbox-mark{width:18px;height:18px}.auth-checkbox span{font-size:12px}.auth-forgot{font-size:12px;padding:4px 0;min-height:36px;display:flex;align-items:center}.auth-submit{padding:14px 20px;font-size:15px;min-height:48px;margin-top:8px}.auth-submit:hover{transform:none}.auth-submit:active{transform:scale(.98)}.auth-footer{margin-top:16px;padding-top:16px}.auth-footer-text{font-size:13px;line-height:1.5}.auth-footer-link{display:inline-block;padding:2px 0}.auth-message{padding:12px 14px;font-size:13px}.auth-back{top:16px;left:16px;padding:8px;margin:-8px;min-height:44px}.auth-close{top:-40px;right:0;width:44px;height:44px}}@media (max-width: 375px){.auth-page{padding:40px 12px 12px}.auth-card{padding:20px 16px}.auth-brand{margin-bottom:12px}.auth-brand-icon{width:36px;height:36px;margin-bottom:8px}.auth-brand-title{font-size:16px}.auth-header{margin-bottom:12px}.auth-title{font-size:20px}.auth-social{margin-top:12px;padding-top:12px}.auth-social-btn{padding:10px;min-height:40px}.auth-social-btn svg{width:18px;height:18px}.auth-divider{gap:10px;margin-bottom:12px}.auth-divider span{font-size:10px}.auth-form{gap:10px}.auth-input{padding:12px;min-height:44px}.auth-submit{padding:12px 16px;min-height:44px;margin-top:4px}.auth-footer{margin-top:12px;padding-top:12px}}@media (max-height: 600px) and (orientation: landscape){.auth-page{padding:12px 24px;align-items:flex-start;overflow-y:auto}.auth-modal{align-items:flex-start;padding-top:12px;overflow-y:auto}.auth-card{padding:20px 24px}.auth-brand{display:none}.auth-header{margin-bottom:12px}.auth-title{font-size:20px}.auth-social{flex-direction:row;margin-top:12px;padding-top:12px}.auth-social-btn{flex:1;padding:10px}.auth-social-btn span{display:none}.auth-form{gap:12px}.auth-footer{margin-top:16px;padding-top:12px}}@media (hover: none) and (pointer: coarse){.auth-social-btn:hover{border-color:var(--auth-border-light);background:var(--auth-surface-light);transform:none}.auth-social-btn:active{border-color:var(--auth-text-tertiary);background:var(--auth-cream)}.auth-submit:hover{transform:none;box-shadow:0 4px 12px #4a6fa540}.auth-submit:active{transform:scale(.98);background:linear-gradient(135deg,#3d5a8a,#b36a48)}.auth-forgot:hover{color:var(--auth-text-muted)}.auth-forgot:active{color:var(--auth-accent)}.auth-footer-link:hover{text-decoration:none}.auth-footer-link:active{color:var(--auth-accent-hover)}.auth-close:hover{border-color:var(--auth-border-light);color:var(--auth-text-muted);background:transparent}.auth-close:active{border-color:var(--auth-accent);color:var(--auth-accent);background:var(--auth-accent-soft)}.auth-password-toggle:hover{color:var(--auth-text-muted)}.auth-password-toggle:active{color:var(--auth-accent)}}@supports (padding: max(0px)){.auth-page{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}.auth-page.keyboard-open,.auth-modal.keyboard-open{align-items:flex-start;padding-top:12px}.keyboard-open .auth-brand{display:none}.keyboard-open .auth-header{margin-bottom:12px}.keyboard-open .auth-card{padding-top:20px}.keyboard-open .auth-social{display:none}@media (prefers-reduced-motion: reduce){.auth-modal,.auth-modal .auth-container,.auth-view.active,.auth-message{animation:none;transition:opacity .2s ease}.auth-submit.loading:after{animation:none}}
