* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* 简洁的背景装饰 */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%),
                linear-gradient(-45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
    background-size: 60px 60px;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(80, 200, 120, 0.15));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.particle:nth-child(1) { width: 150px; height: 150px; left: 5%; top: 15%; animation-delay: 0s; }
.particle:nth-child(2) { width: 100px; height: 100px; left: 85%; top: 10%; animation-delay: 2s; }
.particle:nth-child(3) { width: 120px; height: 120px; left: 10%; top: 75%; animation-delay: 4s; }
.particle:nth-child(4) { width: 80px; height: 80px; left: 80%; top: 70%; animation-delay: 1s; }
.particle:nth-child(5) { width: 180px; height: 180px; left: 45%; top: 5%; animation-delay: 3s; }
.particle:nth-child(6) { width: 60px; height: 60px; left: 25%; top: 60%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-30px) translateX(10px) scale(1.1) rotate(90deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-60px) translateX(-10px) scale(1.2) rotate(180deg); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(-30px) translateX(15px) scale(1.1) rotate(270deg); 
        opacity: 0.8; 
    }
}

/* 主登录容器 */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #cee6ef 0%, #62bde0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Tab样式 */
.wst-tab-box {
    margin-bottom: 30px;
}

.wst-tab-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    border-bottom: 2px solid #e9ecef;
}

.wst-tab-nav li {
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.wst-tab-nav li:hover,
.wst-tab-nav li.on {
    color: #667eea;
    border-bottom-color: #667eea;
}

.wst-tab-content {
    position: relative;
}

.wst-tab-item {
    display: none;
}

.wst-tab-item.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单样式 */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    z-index: 2;
    color: #667eea;
    font-size: 18px;
}

.form-input {
    width: 100%;
    height: 55px;
    padding: 0 0 0 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* 验证码特殊样式 */
.verify-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.verify-input {
    flex: 1;
}

.verify-img {
    height: 55px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

/* 短信验证码按钮 */
.sms-btn {
    height: 55px;
    padding: 0 20px;
    background: linear-gradient(135deg, #cee6ef 0%, #62bde0 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.sms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #cee6ef 0%, #62bde0 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-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;
}

.login-btn:hover::before {
    left: 100%;
}

/* 记住密码和链接 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-links {
    display: flex;
    gap: 15px;
}

.form-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #667eea;
}

/* 二维码样式 */
.qrcode-main {
    text-align: center;
    padding: 30px 0;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qrcode-main p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.qrcode-main span {
    color: #667eea;
    font-weight: 600;
}

.qr-coagent {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.qr-coagent li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.qr-coagent i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cee6ef 0%, #62bde0 100%);
}

/* 页脚样式 */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    z-index: 5;
    border-top: 1px solid #e9ecef;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-info {
    color: #adb5bd;
    font-size: 11px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
        margin: 20px 15px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .form-input {
        height: 50px;
        font-size: 15px;
    }
    
    .login-btn {
        height: 50px;
        font-size: 16px;
    }
    
    .verify-img {
        height: 50px;
    }
    
    .sms-btn {
        height: 50px;
        font-size: 13px;
    }
    
    .wst-tab-nav li {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .qr-coagent {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* 加载动画 */
.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
