/**
 * 半糖书屋 - 登录/注册「书香雅韵」双栏设计
 * 左侧品牌展示 + 右侧登录表单
 */

/* ========================================
   认证页面容器 - 双栏布局
   ======================================== */
.auth-container {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9f5ef 0%, #faf8f5 100%);
    position: relative;
    overflow: hidden;
}

/* ========================================
   左侧展示区域
   ======================================== */
.auth-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 60px 40px;
    background: linear-gradient(145deg, #8b5a2b 0%, #a0522d 30%, #c48b4a 70%, #d4a24c 100%);
    overflow: hidden;
}

/* 纹理叠加 */
.auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* 光晕效果 */
.auth-showcase::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(2deg); }
}

/* ========================================
   漂浮书籍装饰
   ======================================== */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-book {
    position: absolute;
    width: 50px;
    height: 65px;
    transform-style: preserve-3d;
    animation: floatBook 8s ease-in-out infinite;
}

.floating-book .book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.15) 100%);
    border-radius: 2px 0 0 2px;
    transform: rotateY(-30deg) translateZ(4px);
}

.floating-book .book-cover {
    position: absolute;
    left: 8px;
    top: 0;
    width: calc(100% - 8px);
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
    border-radius: 0 4px 4px 0;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        2px 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.book-1 {
    top: 15%;
    left: 10%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.book-2 {
    top: 60%;
    left: 15%;
    width: 40px;
    height: 55px;
    transform: rotate(10deg);
    animation-delay: -2s;
}

.book-3 {
    top: 25%;
    right: 12%;
    width: 45px;
    height: 60px;
    transform: rotate(20deg);
    animation-delay: -4s;
}

@keyframes floatBook {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, -15deg));
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(calc(var(--rotate, -15deg) + 5deg));
        opacity: 1;
    }
}

.book-1 { --rotate: -15deg; }
.book-2 { --rotate: 10deg; }
.book-3 { --rotate: 20deg; }

/* 漂浮树叶 */
.floating-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50% 0 50% 50%;
    animation: floatLeaf 12s ease-in-out infinite;
}

.leaf-1 {
    top: 40%;
    right: 20%;
    transform: rotate(45deg);
    animation-delay: -3s;
}

.leaf-2 {
    bottom: 25%;
    left: 25%;
    width: 24px;
    height: 24px;
    transform: rotate(-30deg);
    animation-delay: -7s;
}

@keyframes floatLeaf {
    0%, 100% {
        transform: translateY(0) rotate(45deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) rotate(60deg) scale(1.05);
    }
    50% {
        transform: translateY(-25px) rotate(45deg) scale(1);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) rotate(30deg) scale(0.95);
    }
}

/* 羽毛笔 */
.floating-quill {
    position: absolute;
    bottom: 30%;
    right: 10%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 2px;
    transform: rotate(-45deg);
    animation: floatQuill 10s ease-in-out infinite;
}

.floating-quill::before {
    content: '';
    position: absolute;
    right: -8px;
    top: -6px;
    width: 20px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 70%);
    border-radius: 0 80% 20% 50%;
    transform: rotate(15deg);
}

@keyframes floatQuill {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) rotate(-40deg);
        opacity: 1;
    }
}

/* ========================================
   品牌展示内容
   ======================================== */
.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 380px;
}

.showcase-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    animation: iconFloat 6s ease-in-out infinite;
}

.showcase-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.showcase-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-subtitle {
    font-size: 16px;
    opacity: 0.85;
    letter-spacing: 2px;
    margin-bottom: 48px;
}

/* 功能特点 */
.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(8px);
}

.feature-item i {
    font-size: 20px;
    opacity: 0.9;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 引言区 */
.showcase-quote {
    position: relative;
    padding: 24px;
}

.showcase-quote::before,
.showcase-quote::after {
    content: '"';
    position: absolute;
    font-size: 60px;
    font-family: Georgia, serif;
    opacity: 0.15;
    line-height: 1;
}

.showcase-quote::before {
    top: 0;
    left: 0;
}

.showcase-quote::after {
    content: '"';
    bottom: -20px;
    right: 0;
}

.showcase-quote blockquote {
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 底部波浪 */
.showcase-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
}

.showcase-wave svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   右侧登录卡片区域
   ======================================== */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-width: 400px;
    min-height: 100vh;
    background: var(--white, #fff);
    box-shadow: -20px 0 60px rgba(42, 31, 26, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* 顶部装饰条 */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4a24c 0%, #c48b4a 50%, #a0522d 100%);
}

/* 纸张纹理叠加 */
.auth-card::after {
    content: '';
    position: absolute;
    inset: 5px 0 0 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

/* 装饰性书签 */
.bookmark-decoration {
    position: absolute;
    top: -10px;
    right: 40px;
    width: 28px;
    height: 70px;
    background: linear-gradient(135deg, #d4a24c 0%, #c48b4a 50%, #a0522d 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(196, 139, 74, 0.3);
    z-index: 2;
}

.bookmark-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(135deg, transparent 50%, #8b5a2b 50%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* ========================================
   卡片头部 - Logo区域
   ======================================== */
.auth-header {
    position: relative;
    padding: 40px 40px 24px;
    text-align: center;
    z-index: 1;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 52px;
    filter: drop-shadow(0 2px 8px rgba(139, 90, 43, 0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-black, #2a1f1a);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-light, #a99a8a);
    position: relative;
    display: inline-block;
}

/* 装饰性分隔符 */
.auth-header p::before,
.auth-header p::after {
    content: '◇';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5px;
    color: var(--primary-color, #c48b4a);
    opacity: 0.4;
}

.auth-header p::before { left: -20px; }
.auth-header p::after { right: -20px; }

/* ========================================
   登录方式切换标签
   ======================================== */
.auth-card-tabs .auth-header {
    padding-bottom: 16px;
}

.login-tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 0 40px;
    margin-bottom: 24px;
}

.login-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light, #a99a8a);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 8px) var(--radius-sm, 8px) 0 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.login-tab i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.login-tab:hover {
    color: var(--primary-color, #c48b4a);
    background: rgba(196, 139, 74, 0.05);
}

.login-tab:hover i {
    transform: scale(1.1);
}

.login-tab.active {
    color: var(--primary-color, #c48b4a);
    background: rgba(196, 139, 74, 0.1);
}

.login-tab.active i {
    transform: scale(1.15);
}

/* 标签指示条 */
.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 40px;
    width: calc((100% - 80px - 8px) / 3);
    height: 3px;
    background: linear-gradient(135deg, #d4a24c 0%, #c48b4a 100%);
    border-radius: 2px 2px 0 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   登录面板容器
   ======================================== */
.login-panels {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.login-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.login-panel.slide-left {
    transform: translateX(-20px);
}

/* ========================================
   表单区域
   ======================================== */
.auth-form {
    position: relative;
    padding: 0 40px 32px;
    z-index: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark, #3d2e1f);
    margin-bottom: 8px;
}

.form-group label i {
    font-size: 14px;
    color: var(--primary-color, #c48b4a);
}

.form-input-wrapper {
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    color: var(--text-dark, #3d2e1f);
    background: #f9f5ef;
    border: 2px solid transparent;
    border-radius: var(--radius, 12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder {
    color: var(--text-light, #a99a8a);
}

.form-group input:focus {
    outline: none;
    background: var(--white, #fff);
    border-color: var(--primary-color, #c48b4a);
    box-shadow: 0 0 0 4px rgba(196, 139, 74, 0.1);
}

.form-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-light, #a99a8a);
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ .form-input-icon {
    color: var(--primary-color, #c48b4a);
}

/* ========================================
   手机号输入框特殊样式
   ======================================== */
.phone-input-wrapper {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark, #3d2e1f);
    padding-right: 12px;
    border-right: 1px solid rgba(210, 180, 140, 0.3);
    z-index: 1;
}

.phone-input-wrapper input {
    padding-left: 100px !important;
}

/* 验证码输入框 */
.code-input-wrapper input {
    padding-right: 120px !important;
}

.btn-send-code {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color, #c48b4a);
    background: rgba(196, 139, 74, 0.1);
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
    background: rgba(196, 139, 74, 0.2);
    color: var(--primary-dark, #8b5a2b);
}

.btn-send-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: var(--text-light, #a99a8a);
}

.btn-send-code.counting {
    background: transparent;
    color: var(--text-light, #a99a8a);
}

/* ========================================
   密码显示切换按钮
   ======================================== */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    font-size: 18px;
    color: var(--text-light, #a99a8a);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color, #c48b4a);
}

/* ========================================
   表单选项
   ======================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me,
.agree-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light, #a99a8a);
    cursor: pointer;
}

.remember-me input,
.agree-terms input {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    accent-color: var(--primary-color, #c48b4a);
    cursor: pointer;
}

.agree-terms a {
    color: var(--primary-color, #c48b4a);
    text-decoration: none;
    font-weight: 500;
}

.agree-terms a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.forgot-password {
    font-size: 13px;
    color: var(--primary-color, #c48b4a);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark, #8b5a2b);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================
   提交按钮
   ======================================== */
.btn-submit {
    position: relative;
    width: 100%;
    padding: 15px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white, #fff);
    background: linear-gradient(135deg, #d4a24c 0%, #c48b4a 50%, #a0522d 100%);
    border: none;
    border-radius: var(--radius, 12px);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(196, 139, 74, 0.35);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 139, 74, 0.45);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========================================
   微信扫码登录面板
   ======================================== */
.wechat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px 36px;
}

.wechat-qrcode-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    margin-bottom: 20px;
}

.wechat-qrcode-box {
    position: relative;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #faf6f0 0%, #fff 100%);
    border-radius: var(--radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(196, 139, 74, 0.1),
        inset 0 0 0 1px rgba(196, 139, 74, 0.15);
    transition: var(--transition);
}

.wechat-qrcode-box:hover {
    box-shadow:
        0 6px 30px rgba(196, 139, 74, 0.15),
        inset 0 0 0 1px rgba(196, 139, 74, 0.25);
}

.wechat-qrcode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.wechat-qrcode-placeholder i {
    font-size: 48px;
    color: var(--primary-color, #c48b4a);
    opacity: 0.6;
}

.wechat-qrcode-placeholder span {
    font-size: 13px;
    color: var(--text-light, #a99a8a);
}

/* Loading 动画 */
.qrcode-loading {
    position: relative;
    width: 50px;
    height: 50px;
}

.qrcode-loading::before,
.qrcode-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.qrcode-loading::before {
    border-top-color: var(--primary-color, #c48b4a);
    border-right-color: var(--primary-color, #c48b4a);
    animation: qrcodeSpinner 1s ease-in-out infinite;
}

.qrcode-loading::after {
    border-bottom-color: rgba(196, 139, 74, 0.3);
    border-left-color: rgba(196, 139, 74, 0.3);
    animation: qrcodeSpinner 1s ease-in-out infinite reverse;
    animation-delay: -0.5s;
}

@keyframes qrcodeSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 扫码状态遮罩 */
.wechat-qrcode-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wechat-qrcode-status.show {
    opacity: 1;
    visibility: visible;
}

.wechat-qrcode-status i {
    font-size: 48px;
    color: var(--primary-color, #c48b4a);
}

.wechat-qrcode-status span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark, #3d2e1f);
}

/* 装饰角 */
.wechat-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid var(--primary-color, #c48b4a);
}

.wechat-corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 4px 0 0 0;
}

.wechat-corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 4px 0 0;
}

.wechat-corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 4px;
}

.wechat-corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 4px 0;
}

/* 微信提示文字 */
.wechat-tips {
    text-align: center;
    margin-bottom: 20px;
}

.wechat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark, #3d2e1f);
    margin-bottom: 6px;
}

.wechat-title i {
    font-size: 20px;
    color: var(--primary-color, #c48b4a);
}

.wechat-desc {
    font-size: 13px;
    color: var(--text-light, #a99a8a);
}

/* 微信官方二维码容器适配（新版 UI，stylelite: 1） */
.wechat-qrcode-box iframe {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px !important;
    height: 220px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 新版 UI 动画效果 */
@keyframes qrcodeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wechat-qrcode-box iframe {
    animation: qrcodeFadeIn 0.4s ease-in-out;
}

/* 刷新按钮 */
.btn-refresh-wechat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color, #c48b4a);
    background: rgba(196, 139, 74, 0.08);
    border: 1px solid rgba(196, 139, 74, 0.2);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh-wechat:hover {
    background: rgba(196, 139, 74, 0.15);
    border-color: var(--primary-color, #c48b4a);
}

.btn-refresh-wechat i {
    transition: transform 0.5s ease;
}

.btn-refresh-wechat:hover i {
    transform: rotate(180deg);
}

.btn-refresh-wechat.refreshing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   Toast 提示动画
   ======================================== */
@keyframes toastIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   底部区域 - 书卷雅韵设计
   ======================================== */
.auth-footer {
    position: relative;
    padding: 16px 40px 28px;
    text-align: center;
    z-index: 1;
}

/* 装饰性分隔线 */
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.divider-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(196, 139, 74, 0.4) 50%, transparent 100%);
}

.divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.15) 0%, rgba(196, 139, 74, 0.1) 100%);
    border: 1px solid rgba(196, 139, 74, 0.2);
    border-radius: 50%;
    animation: iconPulse 3s ease-in-out infinite;
}

.divider-icon i {
    font-size: 14px;
    color: var(--primary-color, #c48b4a);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(196, 139, 74, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(196, 139, 74, 0);
    }
}

/* 注册引导区域 */
.auth-register-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.register-text {
    font-size: 14px;
    color: var(--text-light, #a99a8a);
    margin: 0;
}

.btn-register {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #c48b4a);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.12) 0%, rgba(196, 139, 74, 0.08) 100%);
    border: 1.5px solid rgba(196, 139, 74, 0.3);
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 139, 74, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover {
    color: var(--primary-dark, #8b5a2b);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.2) 0%, rgba(196, 139, 74, 0.15) 100%);
    border-color: var(--primary-color, #c48b4a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 139, 74, 0.25);
}

.btn-register:hover::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-icon i {
    font-size: 20px;
}

.btn-register:hover .btn-icon {
    transform: translateX(4px);
}

/* 装饰性阅读语录 */
.footer-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 237, 204, 0.5) 0%, rgba(212, 165, 116, 0.1) 100%);
    border-radius: 30px;
    position: relative;
}

.footer-quote::before,
.footer-quote::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 139, 74, 0.3));
}

.footer-quote::before {
    right: 100%;
    margin-right: 8px;
}

.footer-quote::after {
    left: 100%;
    margin-left: 8px;
    background: linear-gradient(90deg, rgba(196, 139, 74, 0.3), transparent);
}

.quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #c48b4a);
    opacity: 0.4;
    line-height: 1;
}

.quote-text {
    font-size: 12px;
    font-style: italic;
    color: var(--text-color, #5a4a3a);
    letter-spacing: 2px;
    opacity: 0.8;
}

/* 底部链接 */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.footer-link {
    font-size: 12px;
    color: var(--text-light, #a99a8a);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color, #c48b4a);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color, #c48b4a);
}

.footer-link:hover::after {
    width: 100%;
}

.link-dot {
    width: 3px;
    height: 3px;
    background: rgba(196, 139, 74, 0.4);
    border-radius: 50%;
}

/* 版权信息 */
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-light, #a99a8a);
    opacity: 0.7;
}

.copyright-dot {
    font-size: 8px;
    opacity: 0.5;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .auth-showcase {
        display: none;
    }

    .auth-container {
        justify-content: center;
        padding: 40px 20px;
        background: linear-gradient(135deg, #f9f5ef 0%, #faf8f5 100%);
    }

    .auth-card {
        max-width: 440px;
        min-width: auto;
        min-height: auto;
        border-radius: var(--radius-lg, 16px);
        box-shadow:
            0 25px 80px rgba(42, 31, 26, 0.15),
            0 10px 30px rgba(42, 31, 26, 0.1);
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 16px;
    }

    .auth-card {
        border-radius: var(--radius, 12px);
    }

    .auth-header {
        padding: 32px 24px 20px;
    }

    .auth-form {
        padding: 0 24px 28px;
    }

    .auth-footer {
        padding: 8px 24px 20px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .bookmark-decoration {
        right: 24px;
        width: 24px;
        height: 60px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="tel"] {
        padding-left: 16px;
    }

    .form-input-icon {
        display: none;
    }

    /* 移动端标签样式 */
    .login-tabs {
        padding: 0 24px;
        gap: 2px;
    }

    .login-tab {
        padding: 10px 8px;
        font-size: 12px;
    }

    .login-tab span {
        display: none;
    }

    .login-tab i {
        font-size: 18px;
    }

    .tab-indicator {
        left: 24px;
        width: calc((100% - 48px - 4px) / 3);
    }

    /* 手机输入框 */
    .phone-prefix {
        left: 16px;
    }

    .phone-input-wrapper input {
        padding-left: 72px !important;
    }

    /* 验证码按钮 */
    .btn-send-code {
        padding: 8px 12px;
        font-size: 12px;
    }

    .code-input-wrapper input {
        padding-right: 100px !important;
    }

    /* 微信扫码 */
    .wechat-container {
        padding: 16px 24px 28px;
    }

    .wechat-qrcode-box {
        width: 200px;
        height: 200px;
    }

    .wechat-qrcode-box iframe {
        width: 200px !important;
        height: 200px !important;
    }

    .wechat-qrcode-placeholder {
        font-size: 56px;
    }

    /* 底部区域响应式 */
    .auth-footer {
        padding: 12px 20px 20px;
    }

    .footer-divider {
        gap: 12px;
        margin-bottom: 16px;
    }

    .divider-line {
        max-width: 50px;
    }

    .divider-icon {
        width: 28px;
        height: 28px;
    }

    .divider-icon i {
        font-size: 12px;
    }

    .auth-register-prompt {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

    .register-text {
        font-size: 13px;
    }

    .btn-register {
        padding: 10px 24px;
    }

    .footer-quote {
        padding: 10px 16px;
        margin-bottom: 14px;
    }

    .footer-quote::before,
    .footer-quote::after {
        display: none;
    }

    .quote-mark {
        font-size: 18px;
    }

    .quote-text {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .footer-links {
        gap: 12px;
        margin-bottom: 12px;
    }

    .footer-link {
        font-size: 11px;
    }

    .footer-copyright {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 10px;
    }
}

/* ========================================
   入场动画
   ======================================== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-showcase {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.auth-card {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s both;
}

/* 内容渐入动画 */
.showcase-content > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.showcase-icon { animation-delay: 0.3s; }
.showcase-title { animation-delay: 0.4s; }
.showcase-subtitle { animation-delay: 0.5s; }
.showcase-features { animation-delay: 0.6s; }
.showcase-quote { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 底部区域渐入动画 */
.auth-footer > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.footer-divider { animation-delay: 0.4s; }
.auth-register-prompt { animation-delay: 0.5s; }
.footer-quote { animation-delay: 0.6s; }
.footer-links { animation-delay: 0.7s; }
.footer-copyright { animation-delay: 0.8s; }

/* ========================================
   页面切换动画 - 书页翻转效果
   ======================================== */

/* 页面切换遮罩层 */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    perspective: 2000px;
    overflow: hidden;
}

/* 翻转书页容器 */
.page-flip-container {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform-origin: left center;
}

/* 正在翻转的书页 - 正面（当前页面快照） */
.page-flip-front {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f9f5ef 0%, #faf8f5 100%);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    box-shadow:
        inset -3px 0 15px rgba(0, 0, 0, 0.08),
        -5px 0 25px rgba(0, 0, 0, 0.15);
}

/* 正在翻转的书页 - 背面 */
.page-flip-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f0e8 0%, #ebe6de 100%);
    backface-visibility: hidden;
    transform: rotateY(180deg);
    transform-style: preserve-3d;
}

/* 书页背面纹理 */
.page-flip-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(196, 139, 74, 0.06) 28px,
            rgba(196, 139, 74, 0.06) 29px
        );
    opacity: 0.8;
}

/* 书页背面装饰图案 */
.page-flip-back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(196, 139, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* 翻页时的阴影效果 */
.page-shadow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    opacity: 0;
    pointer-events: none;
}

/* 书脊装饰 */
.book-spine-decoration {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg,
        #6b4423 0%,
        #8b5a2b 30%,
        #a0522d 50%,
        #8b5a2b 70%,
        #6b4423 100%
    );
    box-shadow:
        inset 2px 0 4px rgba(255, 255, 255, 0.1),
        inset -2px 0 4px rgba(0, 0, 0, 0.2),
        3px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* 书脊纹理 */
.book-spine-decoration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        rgba(0, 0, 0, 0.1) 8px,
        rgba(0, 0, 0, 0.1) 9px
    );
}

/* 书脊金色装饰线 */
.book-spine-decoration::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(212, 162, 76, 0.6) 10%,
        rgba(212, 162, 76, 0.8) 50%,
        rgba(212, 162, 76, 0.6) 90%,
        transparent 100%
    );
}

/* 翻页动画关键帧 - 向左翻（去注册页） */
@keyframes pageFlipToRegister {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(-180deg);
    }
}

/* 翻页动画关键帧 - 向右翻（去登录页） */
@keyframes pageFlipToLogin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

/* 阴影动画 */
@keyframes shadowFadeIn {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 页面淡出效果 */
@keyframes pageContentFadeOut {
    0% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 0.3;
        filter: blur(2px);
    }
}

/* 页面内容退出动画类 */
.auth-container.page-exiting {
    animation: pageContentFadeOut 0.4s ease-out forwards;
}

/* 从登录页来的入场动画 */
.auth-container.from-login .auth-card {
    animation: cardFlipIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.auth-container.from-login .auth-showcase {
    animation: showcaseSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
}

/* 从注册页来的入场动画 */
.auth-container.from-register .auth-card {
    animation: cardFlipInReverse 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.auth-container.from-register .auth-showcase {
    animation: showcaseSlideInReverse 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
}

@keyframes cardFlipIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg) translateZ(50px);
    }
    60% {
        opacity: 1;
        transform: perspective(1000px) rotateY(-5deg) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) translateZ(0);
    }
}

@keyframes cardFlipInReverse {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg) translateZ(50px);
    }
    60% {
        opacity: 1;
        transform: perspective(1000px) rotateY(5deg) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) translateZ(0);
    }
}

@keyframes showcaseSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes showcaseSlideInReverse {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* 切换链接悬停效果增强 */
.auth-footer .auth-link a,
.btn-register,
.auth-register-prompt a {
    position: relative;
    overflow: hidden;
}

.auth-footer .auth-link a::before,
.auth-register-prompt .btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(196, 139, 74, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.auth-footer .auth-link a:hover::before,
.auth-register-prompt .btn-register:hover::before {
    width: 200px;
    height: 200px;
}

/* 点击时的涟漪效果 */
.page-switch-ripple {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 139, 74, 0.4) 0%, rgba(196, 139, 74, 0.1) 50%, transparent 70%);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 页面切换加载指示器 */
.page-switch-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.page-switch-loader .loader-book {
    width: 60px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    animation: bookFloat 1.5s ease-in-out infinite;
}

.page-switch-loader .loader-book::before,
.page-switch-loader .loader-book::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 100%;
    background: linear-gradient(135deg, #c48b4a 0%, #d4a24c 100%);
    border-radius: 2px 4px 4px 2px;
    box-shadow: 0 4px 12px rgba(196, 139, 74, 0.3);
}

.page-switch-loader .loader-book::before {
    left: 0;
    transform-origin: right center;
    animation: bookPageLeft 1.2s ease-in-out infinite;
}

.page-switch-loader .loader-book::after {
    right: 0;
    transform-origin: left center;
    animation: bookPageRight 1.2s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes bookPageLeft {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(-30deg); }
}

@keyframes bookPageRight {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(30deg); }
}

.page-switch-loader .loader-text {
    font-size: 13px;
    color: var(--primary-color, #c48b4a);
    letter-spacing: 2px;
    animation: loaderTextPulse 1.5s ease-in-out infinite;
}

@keyframes loaderTextPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 粒子效果 - 翻页时飘落的书页碎片 */
.page-particle {
    position: fixed;
    width: 8px;
    height: 12px;
    background: linear-gradient(135deg, rgba(255, 237, 204, 0.9) 0%, rgba(212, 165, 116, 0.7) 100%);
    border-radius: 1px;
    pointer-events: none;
    z-index: 10002;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes particleFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.3);
    }
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .book-spine-decoration {
        width: 15px;
    }

    .page-switch-loader .loader-book {
        width: 50px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .book-spine-decoration {
        display: none;
    }

    /* 移动端使用简化动画 */
    .auth-container.from-login .auth-card,
    .auth-container.from-register .auth-card {
        animation: mobileCardSlideIn 0.5s ease-out both;
    }

    @keyframes mobileCardSlideIn {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .page-flip-container,
    .auth-container.from-login .auth-card,
    .auth-container.from-register .auth-card,
    .auth-container.from-login .auth-showcase,
    .auth-container.from-register .auth-showcase {
        animation: none !important;
    }

    .page-transition-overlay {
        display: none !important;
    }
}
