/* 精美登录页面样式 - 3D浮雕毛玻璃质感设计 */
@import './google-fonts.css';

/* 浏览器兼容性检测 */
@supports not (backdrop-filter: blur(10px)) {
    .login-container,
    .form-box,
    .input-box input,
    .social-icons a,
    .toggle-panel .btn,
    .error-message,
    .success-message {
        background: rgba(255, 255, 255, 0.2) !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* 动态背景装饰 */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-container {
    position: relative;
    width: 720px;
    height: 480px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    box-shadow: 
        /* 外阴影 - 3D效果 */
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        /* 内阴影 - 浮雕效果 */
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        /* 顶部高光 */
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin: 20px;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    transform-style: preserve-3d;
}

.login-container.active .toggle-box::before {
    left: 50%;
}

.form-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0;
    z-index: 2;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    /* 使用GPU加速，优化动画性能 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 使用伪元素创建覆盖整个组件的黑色卡片背景 */
.form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(145deg, rgba(40, 50, 70, 0.85) 0%, rgba(30, 40, 60, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.1),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* 表单内容定位 */
.form-box form {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* 使用GPU加速，优化动画性能 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* 登录表单：默认在右侧 */
.form-box:not(.register) form {
    margin-left: auto;
}

/* 注册表单：默认在左侧（隐藏状态） */
.form-box.register form {
    margin-left: 0;
}

/* 切换后：登录表单移到左侧（隐藏） */
.login-container.active .form-box:not(.register) form {
    transform: translateX(-100%);
}

/* 切换后：注册表单在左侧（显示） */
.login-container.active .form-box.register form {
    transform: translateX(0);
}

/* 注册表单 - 默认隐藏状态（从右侧隐藏） */
.form-box.register {
    visibility: hidden;
    opacity: 0;
    transform: translateX(50%) translateY(0) scale(0.3);
    z-index: 0;
    pointer-events: none;
    /* 移除复杂的transition，由JavaScript控制 */
}

/* 注册表单 - 激活状态（在左侧显示） */
.login-container.active .form-box.register {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) scale(1);
    z-index: 2;
    pointer-events: auto;
}

/* 确保注册表单中的按钮可见 */
.login-container.active .form-box.register .btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* 注册表单按钮样式优化 */
.form-box.register .btn {
    order: 4; /* 确保按钮在输入框之后 */
    margin-top: 20px;
    margin-bottom: 0;
}

/* 登录表单 - 默认状态（在右侧可见） */
.form-box:not(.register) {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
    pointer-events: auto;
    /* 移除复杂的transition，由JavaScript控制 */
}

/* 登录表单 - 激活时隐藏（向右滑动隐藏） */
.login-container.active .form-box:not(.register) {
    visibility: hidden;
    opacity: 0;
    transform: translateX(50%) translateY(0) scale(0.3);
    z-index: 0;
    pointer-events: none;
}

/* 确保动画过程中表单不会重叠 */
.login-container.transitioning .form-box {
    /* 动画过程中保持层级 */
}

/* 添加动画过程中的特殊效果 */
.login-container.transitioning .form-box:not(.register) {
    transform-origin: center center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-container.transitioning .form-box.register {
    transform-origin: center center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 重新设计的表单切换动画 - 更现代流畅的效果 */
@keyframes slideToLeft {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
    }
    90% {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.05);
    }
    100% {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideToRight {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
    }
    90% {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.05);
    }
    100% {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.05);
    }
    10% {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.05);
    }
    10% {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
                    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* 移动端垂直动画效果 */
@keyframes slideUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    90% {
        transform: translateY(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    100% {
        transform: translateY(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    10% {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
}

/* 确保动画过程中表单有正确的层级 */
.login-container.transitioning .form-box:not(.register) {
    z-index: 1;
}

.login-container.transitioning .form-box.register {
    z-index: 0;
}

/* form 样式已在上面定义，此处删除重复定义 */

.form-box h1 {
    font-size: 32px;
    margin: -10px 0 10px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.input-box {
    position: relative;
    margin: 20px 0;
}

/* 注册表单输入框间距调整 */
.form-box.register .input-box {
    margin: 12px 0;
}

.form-box.register .input-box:first-of-type {
    margin-top: 20px;
}

.form-box.register .input-box:last-of-type {
    margin-bottom: 20px;
}

.input-box input {
    width: 100%;
    padding: 11px 45px 11px 18px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    outline: none;
    font-size: 15px;
    border-radius: 10px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}

.input-box input:focus {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: #667eea;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.input-box input::placeholder {
    color: rgba(102, 126, 234, 0.6);
    font-weight: 400;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #667eea;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.input-box input:focus + i {
    color: #764ba2;
}

.forgot-link {
    margin: -15px 0 15px;
}

.forgot-link a {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn {
    width: 100%;
    height: 42px;
    background: 
        linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 
        /* 外阴影 - 3D效果 */
        0 6px 16px rgba(102, 126, 234, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.1),
        /* 内阴影 - 浮雕效果 */
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    pointer-events: auto;
    z-index: 10;
    margin-top: 10px;
    flex-shrink: 0;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    background: 
        linear-gradient(145deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        /* 外阴影 - 增强3D效果 */
        0 12px 30px rgba(102, 126, 234, 0.6),
        0 6px 15px rgba(0, 0, 0, 0.15),
        /* 内阴影 - 增强浮雕效果 */
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.form-box p {
    font-size: 14.5px;
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    padding: 12px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 8px;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
}

.social-icons a:hover {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.2);
}

.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.toggle-box .toggle-panel {
    pointer-events: auto;
}

.toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
    border-radius: 150px;
    transition: 1.8s ease-in-out;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: 0.6s ease-in-out;
    animation: fadeInLeft 0.8s ease-out 0.5s both;
    visibility: visible;
    opacity: 1;
}

.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
    visibility: visible;
    opacity: 1;
}

.login-container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: 0.6s;
}

.toggle-panel.toggle-right {
    right: -50%;
    transition-delay: 0.6s;
    visibility: visible;
    opacity: 1;
}

.login-container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
    visibility: visible;
    opacity: 1;
}

.toggle-panel h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.toggle-panel p {
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

/* 版权信息样式 - 统一位置 */
.copyright-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    text-align: center;
    opacity: 0.7;
}

/* 移动端隐藏切换面板中的版权信息 */
@media screen and (max-width: 650px) {
    .toggle-panel .copyright-info {
        display: none;
    }
}

.copyright-info p {
    margin: 1px 0;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.copyright-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-info a:hover {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.copyright {
    font-weight: 500;
}

.icp-info {
    font-size: 8px !important;
}

.toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    position: relative;
    z-index: 6;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toggle-panel .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 窄屏下切换面板按钮样式 */
@media screen and (max-width: 900px) {
    .toggle-panel .btn {
        pointer-events: auto;
        cursor: pointer;
    }
    
    .toggle-panel .btn:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.25);
    }
    
    .toggle-panel .btn:active {
        transform: scale(0.95);
    }
}

/* 页面底部版权信息样式 */
.page-footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.page-footer .copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

.page-footer .icp-info {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin: 2px 0 0 0;
}

.page-footer .icp-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-footer .icp-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 错误和成功消息样式 */
.error-message {
    background: rgba(255, 107, 107, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message {
    background: rgba(79, 172, 254, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4facfe;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 极窄屏幕响应式设计 - 使用移动端登录组件 */
@media screen and (max-width: 900px) {
    /* 隐藏电脑端登录组件 */
    .desktop-login {
        display: none !important;
    }

    /* 显示移动端登录组件 */
    .mobile-login-wrapper {
        display: flex !important;
    }

    /* 移动端登录组件样式 */
    .mobile-login-wrapper .login-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* 隐藏电脑端的页面底部版权信息 */
    .desktop-login ~ .page-footer {
        display: none;
    }
}

/* 宽屏下隐藏移动端组件 */
@media screen and (min-width: 901px) {
    .mobile-login-wrapper {
        display: none !important;
    }
}

/* 以下为旧的极窄屏幕样式（已废弃，保留以防万一，但不会生效） */
@media screen and (max-width: 900px) {
    body {
        padding: 20px;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .login-container {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: auto;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        position: relative;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    /* 精美的切换卡片控制器 */
    .toggle-box {
        position: relative !important;
        width: 100%;
        height: auto;
        z-index: 10;
        display: flex;
        flex-direction: row;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 24px 24px 0 0;
        padding: 6px;
        margin: 0;
        gap: 6px;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: none;
    }

    .toggle-box::before {
        display: none !important;
    }

    /* 精美的切换卡片按钮 */
    .toggle-panel {
        position: relative !important;
        flex: 1;
        height: auto !important;
        padding: 20px 16px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        background: transparent;
        border-radius: 18px;
        border: 2px solid transparent;
        user-select: none;
        -webkit-user-select: none;
        overflow: hidden;
    }

    .toggle-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .toggle-panel.toggle-left {
        border-radius: 18px;
    }

    .toggle-panel.toggle-right {
        border-radius: 18px;
    }

    /* 激活状态的切换卡片 - 精美效果 */
    .toggle-panel.active {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 
            0 8px 24px rgba(255, 255, 255, 0.25),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        transform: translateY(-3px) scale(1.02);
        opacity: 1;
    }

    .toggle-panel.active::before {
        opacity: 1;
    }

    .toggle-panel:not(.active) {
        opacity: 0.8;
    }

    .toggle-panel:not(.active):hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    }

    .toggle-panel:not(.active):hover::before {
        opacity: 0.5;
    }

    .toggle-panel:active {
        transform: translateY(0) scale(0.98);
    }

    .toggle-panel h1 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
        color: #fff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        font-weight: 700;
        letter-spacing: -0.5px;
        position: relative;
        z-index: 1;
    }

    .toggle-panel p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
        font-weight: 500;
        position: relative;
        z-index: 1;
    }

    .toggle-panel .btn {
        width: 120px !important;
        height: 42px !important;
        font-size: 14px !important;
        margin-top: 0 !important;
        padding: 0 24px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        color: #fff !important;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 1;
        letter-spacing: 0.5px;
    }

    .toggle-panel.active .btn {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
        box-shadow: 
            0 4px 16px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }

    .toggle-panel .btn:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%) !important;
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
    }

    /* 精美的表单卡片样式 */
    .form-box {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 1;
        margin-top: 0;
        margin-bottom: 0;
        background: 
            linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-top: none;
        border-radius: 0 0 24px 24px;
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.15),
            inset 0 -2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
    }

    .form-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        z-index: 0;
    }

    /* 隐藏非激活的表单卡片 */
    .form-box.register {
        display: none;
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    .login-container.active .form-box.login {
        display: none;
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }

    .login-container.active .form-box.register {
        display: flex;
        transform: translateY(0) scale(1);
        opacity: 1;
        animation: slideUpCardBeautiful 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .form-box.login {
        display: flex;
        transform: translateY(0) scale(1);
        opacity: 1;
        animation: slideDownCardBeautiful 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes slideUpCardBeautiful {
        from {
            transform: translateY(30px) scale(0.95);
            opacity: 0;
        }
        50% {
            transform: translateY(-5px) scale(1.02);
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    @keyframes slideDownCardBeautiful {
        from {
            transform: translateY(-30px) scale(0.95);
            opacity: 0;
        }
        50% {
            transform: translateY(5px) scale(1.02);
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    /* 精美的表单内容样式 */
    .form-box form {
        width: 100% !important;
        height: auto !important;
        padding: 50px 40px !important;
        margin: 0 !important;
        transform: none !important;
        overflow: visible;
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 1;
    }

    /* 输入框优化 - 更精美 */
    .input-box {
        margin: 20px 0;
        position: relative;
    }

    .input-box input {
        padding: 16px 50px 16px 20px;
        font-size: 15px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .input-box input:focus {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 
            0 4px 16px rgba(255, 255, 255, 0.3),
            0 0 0 4px rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .input-box i {
        color: #667eea;
        font-size: 20px;
    }

    /* 按钮优化 - 更精美 */
    .form-box .btn {
        height: 52px;
        font-size: 16px;
        margin-top: 20px;
        border-radius: 14px;
        font-weight: 600;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        box-shadow: 
            0 6px 20px rgba(102, 126, 234, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        letter-spacing: 0.5px;
    }

    .form-box .btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 
            0 10px 30px rgba(102, 126, 234, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }

    .form-box .btn:active {
        transform: translateY(-1px) scale(1);
    }

    /* 社交图标优化 - 更精美 */
    .social-icons {
        margin-top: 25px;
        gap: 14px;
        justify-content: center;
    }

    .social-icons a {
        padding: 14px;
        font-size: 24px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        backdrop-filter: blur(10px);
    }

    .social-icons a:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }

    /* 标题优化 - 更精美 */
    .form-box h1 {
        font-size: 32px;
        margin-bottom: 30px;
        color: #fff;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
        font-weight: 700;
        letter-spacing: -1px;
        background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* 忘记密码链接 */
    .forgot-link {
        margin: -12px 0 18px;
        text-align: right;
    }

    .forgot-link a {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 500;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .forgot-link a:hover {
        color: rgba(255, 255, 255, 1);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    /* 页面底部版权信息 */
    .page-footer {
        position: relative;
        margin-top: 30px;
        padding: 20px;
        text-align: center;
    }

    .page-footer p {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
}

/* 超窄屏幕优化（小于700px） */
@media screen and (max-width: 700px) {
    body {
        padding: 15px;
    }

    .login-container {
        max-width: 100%;
        margin: 0;
    }

    .toggle-box {
        padding: 5px;
        gap: 5px;
        border-radius: 20px 20px 0 0;
    }

    .toggle-panel {
        padding: 16px 12px !important;
        border-radius: 16px !important;
    }

    .toggle-panel h1 {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    .toggle-panel p {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .toggle-panel .btn {
        width: 110px !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 20px !important;
    }

    .form-box form {
        padding: 40px 30px !important;
    }

    .form-box h1 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .input-box {
        margin: 18px 0;
    }

    .input-box input {
        padding: 14px 45px 14px 18px;
        font-size: 14px;
    }

    .form-box .btn {
        height: 48px;
        font-size: 15px;
        margin-top: 18px;
    }

    .social-icons {
        gap: 12px;
        margin-top: 22px;
    }

    .social-icons a {
        padding: 12px;
        font-size: 22px;
    }
}

/* 极小屏幕优化（小于500px） */
@media screen and (max-width: 500px) {
    body {
        padding: 12px;
    }

    .login-container {
        margin: 0;
    }

    .toggle-box {
        padding: 4px;
        gap: 4px;
        border-radius: 18px 18px 0 0;
    }

    .toggle-panel {
        padding: 14px 10px !important;
        border-radius: 14px !important;
    }

    .toggle-panel h1 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    .toggle-panel p {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    .toggle-panel .btn {
        width: 100px !important;
        height: 36px !important;
        font-size: 12px !important;
        padding: 0 18px !important;
    }

    .form-box form {
        padding: 35px 25px !important;
    }

    .form-box h1 {
        font-size: 26px;
        margin-bottom: 22px;
    }

    .input-box {
        margin: 16px 0;
    }

    .input-box input {
        padding: 13px 42px 13px 16px;
        font-size: 14px;
    }

    .form-box .btn {
        height: 46px;
        font-size: 14px;
        margin-top: 16px;
    }

    .social-icons {
        gap: 10px;
        margin-top: 20px;
    }

    .social-icons a {
        padding: 11px;
        font-size: 20px;
    }

    .page-footer {
        padding: 15px;
        font-size: 11px;
    }
}
