* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at bottom, #001d3d 0%, #000814 100%);
    overflow: hidden;
    position: relative;
    color: #ffffff;
}

/* 星空背景 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.meteor {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 50%;
    animation: meteor 5s linear infinite;
    opacity: 0;
    transform: rotate(45deg);
}

.meteor::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    transform-origin: left center;
}

@keyframes meteor {
    0% {
        opacity: 0;
        transform: rotate(75deg) translateX(-50vw) translateY(-100px);
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: rotate(75deg) translateX(150vw) translateY(400px);
    }
}

/* 保留粒子效果容器但移除原有样式 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

/* 主容器 */
.container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.85) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 900px;
    max-width: 90vw;
    min-height: 540px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95vw;
        max-width: 400px;
        min-height: auto;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-panel {
        width: 100%;
        padding: 40px 30px;
    }
    
    .auth-panel.register {
        display: none;
        transform: none;
    }
    
    .auth-panel.register.active {
        display: block;
        transform: none;
    }
    
    .auth-panel.login {
        transform: none;
    }
    
    .auth-panel.login.shifted {
        transform: none;
        display: none;
    }
    
    .decoration-left,
    .decoration-right {
        display: none;
    }
    
    .switch-btn {
        display: block;
        margin: 20px auto 0;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: #60a5fa;
        padding: 8px 20px;
        border-radius: 25px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .switch-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
        transform: translateY(-2px);
    }
    
    .auth-container::after {
        display: none;
    }
}

/* 容器背景装饰 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    background-size: 300px 300px, 250px 250px, 200px 200px, 100% 100%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    pointer-events: none;
    z-index: 0;
    animation: background-shift 20s ease-in-out infinite;
}

@keyframes background-shift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }
    33% {
        background-position: 20% 20%, 80% 80%, 30% 70%, 0% 0%;
    }
    66% {
        background-position: 80% 80%, 20% 20%, 70% 30%, 0% 0%;
    }
}

/* 登录注册切换容器 */
.auth-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.auth-panel {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

/* 登录面板背景装饰 */
.auth-panel.login {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%);
    position: relative;
    color: #ffffff;
}

.auth-panel.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
        linear-gradient(45deg, transparent 48%, rgba(102, 126, 234, 0.02) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(118, 75, 162, 0.02) 50%, transparent 52%);
    background-size: 200px 200px, 20px 20px, 20px 20px;
    background-position: 0% 0%, 0% 0%, 0% 0%;
    pointer-events: none;
    z-index: 0;
    animation: pattern-move 30s linear infinite;
}

/* 注册面板背景装饰 */
.auth-panel.register {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(99, 102, 241, 0.9) 100%);
    color: white;
    transform: translateX(100%);
    z-index: 1;
}

.auth-panel.register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%);
    background-size: 180px 180px, 15px 15px, 15px 15px;
    background-position: 0% 0%, 0% 0%, 0% 0%;
    pointer-events: none;
    z-index: 0;
    animation: pattern-move 25s linear infinite reverse;
}

@keyframes pattern-move {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 100% 100%, 20px 20px, -20px -20px;
    }
}

.auth-panel > *:not(.decoration-icon):not(.decoration-icon::before) {
    position: relative;
    z-index: 2;
}

/* 容器装饰背景 */
.auth-container {
    position: relative;
    overflow: hidden;
}

/* 登录面板右侧装饰 */
.auth-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 30c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16zm80 60c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16zm-70-20c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm120 70c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM60 180c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm120-150c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20 170c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16zm60-130c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16zm50-30c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20zm-20 120c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16zm70 50c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20zM70 130c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20zm120-30c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20zm-20-50c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM120 190c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM70 90c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20 140c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' fill='%23667eea' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 400px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 注册面板激活时隐藏右侧装饰 */
.auth-panel.register.active ~ .decoration-right {
    transform: translateX(0);
}

/* 装饰元素 */
.decoration-left {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, rgba(167, 139, 250, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(96, 165, 250, 0.8);
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(96, 165, 250, 0.5);
}

.decoration-left::before {
    content: '🚀';
    font-size: 100px;
    margin-bottom: 10px;
    opacity: 1.0;
}

.decoration-right {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    /* transition: opacity 0.5s ease; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(59, 130, 246, 0.9);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.decoration-right::before {
    content: '🔐';
    font-size: 60px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.decoration-text {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    color: #ffffff;
}

/* 登录面板激活时显示右侧装饰 */
.auth-panel.login.active + .auth-panel.register.active ~ .decoration-right {
    opacity: 0;
}

.auth-panel.login.active + .auth-panel.register.active ~ .decoration-left {
    opacity: 0.99;
}

/* 默认状态（登录面板显示） */
.auth-panel.login:not(.active) + .auth-panel.register:not(.active) ~ .decoration-right {
    opacity: 0.99;
}

.auth-panel.login:not(.active) + .auth-panel.register:not(.active) ~ .decoration-left {
    opacity: 0;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateY(-50%) scale(1.1); opacity: 0.4; }
}

/* 登录面板时显示右侧装饰 */
.auth-panel.login:not(.shifted) ~ .decoration-right {
    opacity: 0.15;
}

.auth-panel.login.shifted ~ .decoration-right {
    opacity: 0;
}

.auth-panel.login {
    z-index: 2;
}

.auth-panel.register.active {
    transform: translateX(0);
    z-index: 2;
}

.auth-panel.login.shifted {
    transform: translateX(-100%);
    z-index: 1;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
}

.auth-panel.register .auth-title {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.auth-panel.register .auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.auth-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #ffffff;
    outline: none;
}

.input-field:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.auth-panel.register .input-field {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.auth-panel.register .input-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth-panel.register .input-field:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.input-field::placeholder {
    color: #999;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-panel.register .auth-btn {
    background: white;
    color: #667eea;
}

.auth-panel.register .auth-btn:hover {
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* 第三方登录 */
.social-login {
    margin-top: 20px;
}

.social-title {
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 15px;
    position: relative;
}

.auth-panel.register .social-title {
    color: rgba(255, 255, 255, 0.8);
}

.social-title::before,
.social-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e1e8ed;
}

.auth-panel.register .social-title::before,
.auth-panel.register .social-title::after {
    background: rgba(255, 255, 255, 0.3);
}

.social-title::before {
    left: 0;
}

.social-title::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #60a5fa;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.auth-panel.register .social-btn {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.15);
}

.social-btn.wechat:hover {
    background: #07C160;
    color: white;
    border-color: #07C160;
}
.social-btn.qq{
    background-image: url("qq.ico") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 50% !important;
    background-size: 30px 30px !important;
}
.social-btn.qq:hover {
    /* background-color: #333; */

}

.social-btn.weibo:hover {
    background: #E6162D;
    color: white;
    border-color: #E6162D;
}
.social-btn.github{
    background-image: url("github.ico") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 50% !important;
    background-size: 30px 30px !important;
}
.social-btn.github:hover {
    /* background-color: #00ff62; */
  
}

/* 切换按钮 */
.switch-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #60a5fa;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.auth-panel.register .switch-btn {
    color: white;
}

.switch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

/* 协议复选框 */
.terms-container {
    display: flex;
    align-items: center;
    
    margin-bottom: 20px;
}

.terms-checkbox {
    margin-right: 10px;
    margin-top: 2px;
}

.terms-label {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.auth-panel.register .terms-label {
    color: rgba(255, 255, 255, 0.8);
}

.terms-label a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-panel.register .terms-label a {
    color: white;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* 响应式布局 */
@media (max-width: 768px) {
    body {
        padding: 20px 0;
    }

    .container {
        width: 95vw;
        max-width: 400px;
        min-height: 540px;
        border-radius: 16px;
    }

    .auth-container {
        flex-direction: column;
        position: relative;
        height: auto;
        min-height: 540px;
    }

    .auth-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 35px 25px;
        border-radius: 10px;
        backface-visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .auth-panel.login {
        transform: rotateY(0deg);
        z-index: 2;
    }

    .auth-panel.register {
        transform: rotateY(180deg);
        z-index: 1;
    }

    .auth-panel.register.active {
        transform: rotateY(0deg);
        z-index: 2;
    }

    .auth-panel.login.shifted {
        transform: rotateY(-180deg);
        z-index: 1;
    }

    .auth-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .auth-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-field {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 10px;
    }

    .auth-btn {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .terms-container {
        margin-bottom: 15px;
    }

    .terms-label {
        font-size: 11px;
        line-height: 1.3;
    }

    .switch-btn {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 6px;
        background: rgba(102, 126, 234, 0.1);
    }

    .auth-panel.register .switch-btn {
        background: rgba(255, 255, 255, 0.2);
    }

    .social-login {
        margin-top: 15px;
    }

    .social-title {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .social-title::before,
    .social-title::after {
        width: 25%;
    }

    .social-buttons {
        gap: 12px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 50%;
    }

    /* 优化移动端触摸体验 */
    .auth-btn,
    .social-btn,
    .switch-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .input-field {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* 减少移动端动画性能消耗 */
    .floating-shape {
        animation-duration: 25s;
    }

    .particle {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 0;
    }

    .container {
        width: 92vw;
        max-width: 350px;
        min-height: 480px;
        border-radius: 12px;
    }

    .auth-panel {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .auth-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-field {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .terms-container {
        margin-bottom: 12px;
        /* flex-direction: column; */
        align-items: center;
        gap: 8px;
    }

    .terms-checkbox {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .terms-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .switch-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .social-title {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .social-title::before,
    .social-title::after {
        width: 20%;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* 通知系统移动端优化 */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
        padding: 12px 15px;
        border-radius: 6px;
    }
    
    /* 移动端装饰元素调整 */
    .decoration-left,
    .decoration-right {
        width: 120px;
        height: 120px;
        font-size: 14px;
    }
    
    .decoration-left::before,
    .decoration-right::before {
        font-size: 40px;
        margin-bottom: 5px;
    }
    
    .decoration-text {
        font-size: 12px;
        font-weight: 500;
    }
    
    /* 移动端背景装饰调整 */
    .container::before {
        background-size: 200px 200px, 150px 150px, 100px 100px, 100% 100%;
        animation-duration: 30s;
    }
    
    .auth-panel.login::before {
        background-size: 150px 150px, 15px 15px, 15px 15px;
        animation-duration: 40s;
    }
    
    .auth-panel.register::before {
        background-size: 120px 120px, 12px 12px, 12px 12px;
        animation-duration: 35s;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        max-height: 90vh;
        overflow-y: auto;
    }

    .auth-panel {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .input-field {
        padding: 10px 12px;
        font-size: 13px;
    }

    .auth-btn {
        padding: 10px;
        font-size: 13px;
    }
}