* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #3b4cb8 0%, #4facfe 50%, #00f2fe 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 返回首页按钮 */
.back-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.back-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 操作手册按钮 */
.manual-btn {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
}

.manual-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.manual-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.manual-icon span:first-child {
    font-size: 24px;
}

.manual-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* 主容器 */
.login-container {
    display: flex;
    width: 1000px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* 左侧装饰区域 */
.left-decoration {
    width: 500px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decoration-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D立体图形 */
.shape-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.shape {
    position: absolute;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 50px;
    left: 80px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    animation-delay: 0s;
    transform: perspective(1000px) rotateX(45deg) rotateY(45deg);
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 150px;
    left: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    animation-delay: 1s;
    transform: perspective(1000px) rotateX(-30deg) rotateY(30deg);
}

.shape-3 {
    width: 70px;
    height: 70px;
    top: 220px;
    left: 50px;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    animation-delay: 2s;
    transform: perspective(1000px) rotateX(60deg) rotateY(-45deg);
}

.shape-4 {
    width: 50px;
    height: 50px;
    top: 120px;
    left: 150px;
    background: linear-gradient(45deg, #764ba2, #667eea);
    animation-delay: 3s;
    border-radius: 50%;
    transform: perspective(1000px) rotateX(-60deg) rotateY(60deg);
}

.shape-5 {
    width: 65px;
    height: 65px;
    top: 80px;
    left: 220px;
    background: linear-gradient(45deg, #4facfe, #667eea);
    animation-delay: 4s;
    transform: perspective(1000px) rotateX(30deg) rotateY(-30deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateX(45deg) rotateY(45deg);
    }
    50% {
        transform: translateY(-15px) rotateX(45deg) rotateY(45deg);
    }
}

/* 数据可视化图表装饰 */
.chart-decoration {
    position: absolute;
    bottom: 80px;
    left: 60px;
    opacity: 0.6;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.bar {
    width: 10px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 5px;
    animation: barGrow 2s ease-in-out infinite alternate;
}

.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }
.bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes barGrow {
    0% { transform: scaleY(0.8); }
    100% { transform: scaleY(1.2); }
}

/* 圆形装饰元素 */
.circle-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: circleFloat 8s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 20%;
    animation-delay: 2s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 55%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes circleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.6;
    }
}

/* 右侧表单区域 */
.right-form {
    width: 500px;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 350px;
}

/* 欢迎标题 */
.welcome-section {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.platform-title {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

/* 登录选项卡 */
.login-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab.active {
    color: #4facfe;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

/* 登录表单 */
.login-form {
    width: 100%;
}

.form-content {
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-field {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.3s ease;
    height: 45px;
}

.input-field:focus-within {
    border-color: #4facfe;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.input-icon {
    font-size: 16px;
    margin-right: 10px;
    color: #999;
}

.input-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.input-field input::placeholder {
    color: #999;
}

/* 数字证书登录 */
.certificate-info {
    text-align: center;
    padding: 30px 15px;
}

.certificate-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.certificate-text {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.certificate-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
    transition: all 0.3s ease;
}

.status-indicator.connected {
    background: #28a745;
}

.status-text {
    font-size: 13px;
    color: #666;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.3);
}

.login-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
}

/* 表单链接 */
.form-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.form-link {
    color: #4facfe;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: #00f2fe;
}

/* 其他登录方式 */
.other-login {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.other-login-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.other-login-btn {
    display: inline-block;
    padding: 6px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.other-login-btn:hover {
    background: #e9ecef;
}

.other-login-text {
    font-size: 11px;
    color: #666;
}

/* 错误信息 */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 15px;
}

/* 登录成功提示 */
.login-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #52c41a;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.3);
    z-index: 9999;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .login-container {
        width: 90%;
        max-width: 900px;
    }
    
    .left-decoration {
        width: 450px;
    }
    
    .right-form {
        width: 450px;
        padding: 30px;
    }
    
    .shape-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }
    
    .login-container {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .left-decoration {
        width: 100%;
        height: 250px;
    }
    
    .right-form {
        width: 100%;
        height: calc(100vh - 250px);
        padding: 20px;
    }
    
    .back-home {
        top: 15px;
        left: 15px;
    }
    
    .manual-btn {
        top: 15px;
        right: 15px;
        transform: none;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .platform-title {
        font-size: 13px;
    }
    
    .shape-container {
        width: 200px;
        height: 200px;
    }
    
    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .right-form {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .platform-title {
        font-size: 12px;
    }
}