
.main-container {
    width: 1200px;
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 220px auto 0;
}

/* 左侧背景图片区域 */
.left-section {
    flex: 1;
    background: url('/images/login.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
}

.left-content {
    text-align: center;
}

    .left-content h1 {
        font-size: 36px;
        margin-bottom: 20px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .left-content p {
        font-size: 18px;
        line-height: 1.6;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

/* 右侧表单区域 - 固定宽度，切换时大小不变 */
.right-section {
    width: 500px;
    padding: 60px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    width: 100%;
}

.tab-container {
    display: flex;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

    .tab.active {
        color: #1890ff;
        border-bottom: 2px solid #1890ff;
        font-weight: bold;
    }

/* 表单容器 - 固定高度和宽度，防止切换时抖动 */
.form-content {
    display: none;
    min-height: 380px;
    width: 100%;
}

    .form-content.active {
        display: block;
    }

/* 确保两个表单内部元素高度完全一致 */
#password-login-form,
#sms-login-form {
    min-height: 300px;
}

    /* 统一表单内部结构，保证切换时无尺寸变化 */
    #password-login-form form,
    #sms-login-form form {
        width: 100%;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        color: #666;
    }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-group input {
        flex: 1;
        height: 48px;
        padding: 0 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        outline: none;
        transition: all 0.3s;
    }

        .input-group input:focus {
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
        }

/*短信验证码*/
.get-code-grap {
    cursor: pointer;
    position: absolute;
    right: 0px;
    height: 48px;
    border-radius: 6px;
}

.get-code-btn {
    position: absolute;
    right: 10px;
    height: 36px;
    padding: 0 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

    .get-code-btn:hover {
        background-color: #40a9ff;
    }

    .get-code-btn.disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.submit-btn {
    width: 100%;
    height: 48px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .submit-btn:hover {
        background-color: #40a9ff;
    }

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

    .form-footer a {
        color: #1890ff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .form-footer a:hover {
            color: #40a9ff;
        }

.error-message {
    color: #f5222d;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* 协议区域样式精致 */
.agreement-links {
    margin-top: 6px;
    line-height: 1.5;
    font-size: 13px;
}


    .agreement-links > div {
        margin-bottom: 8px;
        color: #5b6e8c;
    }
