* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    background: transparent;
    box-shadow: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    cursor: pointer;
}

.logo img {
    height: 28px;
    width: 28px;
}

.logo span {
    font-size: 16px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.header-right {
    display: flex;
    gap: 4px;
    height: 100%;
    align-items: center;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.icon-button i {
    font-size: 18px;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    opacity: 1;
}

.main-container {
    flex: 1;
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

.login-container {
    width: 100%;
    background: white;
    display: flex;
}

.login-left {
    flex: 1;
    background: linear-gradient(163.85deg, #1890ff 0%, #77e3f6 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.login-image {
    width: 100%;
    max-width: 260px;
    margin-bottom: 40px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.login-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
    font-weight: 500;
}

.login-text p {
    font-size: 18px;
    opacity: 0.9;
}

.login-right {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 600px;
    position: relative;
    padding-bottom: 24px;
    padding-top: 120px;
}

.login-box {
    width: 100%;
}

.login-header {
    /* margin-bottom: 40px; */
    margin: 40px auto;
    width: 400px;
}

.login-header h1 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 12px;
}

.login-header p {
    color: #666;
    font-size: 16px;
    opacity: 0.8;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.verification-item {
    display: flex !important;
    align-items: center;
}

.verification-item .el-form-item__content {
    display: flex !important;
    gap: 8px;
    width: 100%;
}

.verification-item .el-input {
    width: calc(100% - 108px) !important;
}

.captcha-image {
    width: 100px;
    height: 40px;
    background: linear-gradient(145deg, #1890ff, #40a9ff);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    color: white;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 L100 20' stroke='rgba(255,255,255,0.2)' stroke-width='1' stroke-dasharray='4 2'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.captcha-image:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 24px;
}

.login-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.login-options .el-button {
    flex: 1;
}

.mobile-login, .qr-login {
    height: 40px;
}

.other-login {
    text-align: center;
    margin-top: 24px;
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 20px;
}

.social-icons i {
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.social-icons i:hover {
    color: #1890ff;
}

.footer {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 16px 0;
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
}

/* Element UI 覆盖样式 */
.el-input__inner {
    height: 40px;
}

.el-button--primary {
    background-color: #1890ff;
    border-color: #1890ff;
    height: 40px;
    font-size: 16px;
}

.el-button--primary:hover,
.el-button--primary:focus {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.el-select {
    width: 100%;
}

.el-checkbox__label {
    color: #666;
}

.el-link {
    font-size: 14px;
}

.login-button {
    width: 100%;
}

/* Element UI tooltip 样式调整 */
.el-tooltip__popper.is-dark {
    background: rgba(0, 0, 0, 0.8) !important;
    font-size: 12px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.qr-login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.qr-code-wrapper {
    padding: 40px 0;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.qr-code i {
    font-size: 100px;
    color: #1890ff;
}

.qr-code:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.qr-tip {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.qr-sub-tip {
    font-size: 14px;
    color: #666;
    opacity: 0.8;
}

.switch-to-account {
    margin-top: 40px;
}

.switch-to-account .el-button {
    font-size: 14px;
}

.switch-to-account i {
    margin-right: 8px;
}

/* 添加切换动画 */
.login-form,
.qr-login-container {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.el-input-group__prepend {
    background-color: #fafafa !important;
    border-color: #d9d9d9 !important;
    color: #666;
    padding: 0 15px;
}

.send-code-btn {
    width: 120px !important;
    height: 40px;
    padding: 0;
    font-size: 14px;
    border-radius: 4px;
}

.send-code-btn:disabled {
    color: #999;
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

/* 优化手机号输入框样式 */
.el-input-group__prepend + .el-input__inner {
    border-left: none !important;
} 

/* 登录选项样式 */
        .login-options {
            display: flex;
            justify-content: space-between;
            margin-top: 16px;
            width: 100%;
        }

        .login-options .el-button {
            width: 49%;
            height: 40px;
            font-size: 14px;
            border: 1px solid #ebeef5;
            background: #fff;
            color: #606266;
            border-radius: 4px;
            padding: 0;
        }

        .login-options .el-button:hover {
            color: #409eff;
        }

        /* 验证码按钮样式 */
        .verification-item {
            display: flex !important;
            width: 100%;
        }

        .verification-item .el-input {
            flex: 1;
        }

        .verification-item .el-form-item__content {
            display: flex !important;
            width: 100%;
            gap: 12px;
        }

        .send-code-btn {
            width: 120px !important;
            height: 40px;
            padding: 0;
            font-size: 14px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* 登录按钮样式 */
        .login-button {
            width: 100%;
            height: 40px;
            font-size: 14px;
        }

        .switch-buttons {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-top: 16px;
        }

        .switch-buttons .el-button {
            width: 49%;
            height: 40px;
            font-size: 14px;
            border: 1px solid #ebeef5;
            background: #fff;
            color: #606266;
            border-radius: 4px;
            padding: 0;
        }

        .switch-buttons .el-button:hover {
            color: #409eff;
        }

        .verification-code {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .code-image {
            width: 200px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: #f5f7fa;
            color: #606266;
            font-size: 18px;
            border-radius: 4px;
        }

        .remember-forget {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .remember-forget .el-checkbox {
            margin-right: 0;
        }

        .forget-link {
            color: #409eff;
            text-decoration: none;
            font-size: 14px;
            margin-left: auto;
        }

        .forget-link:hover {
            color: #66b1ff;
        }

        /* 移除form-item的默认margin */
        .el-form-item {
            margin-bottom: 22px;
        }

        .el-form-item.no-bottom-margin {
            margin-bottom: 0;
        }